fixed mentions even though they will be changed in the future... why

This commit is contained in:
Amish Shah
2015-12-19 21:22:06 +00:00
parent 941fd2fe98
commit 90045db92d
7 changed files with 26 additions and 8 deletions

View File

@@ -393,7 +393,9 @@ export default class InternalClient {
.then(destination => {
//var destination;
var content = this.resolver.resolveString(_content);
var mentions = this.resolver.resolveMentions(content);
var resolved = this.resolver.resolveMentions(content);
var mentions = resolved[0], content = resolved[1];
return this.apiRequest("post", Endpoints.CHANNEL_MESSAGES(destination.id), true, {
content: content,