Fix from username in message post

This commit is contained in:
Bryan Ashby 2017-02-12 22:13:03 -07:00
parent f85388e747
commit aa40d998b2
1 changed files with 2 additions and 2 deletions

View File

@ -316,12 +316,12 @@ exports.FullScreenEditorModule = exports.getModule = class FullScreenEditorModul
} }
buildMessage() { buildMessage() {
var headerValues = this.viewControllers.header.getFormData().value; const headerValues = this.viewControllers.header.getFormData().value;
var msgOpts = { var msgOpts = {
areaTag : this.messageAreaTag, areaTag : this.messageAreaTag,
toUserName : headerValues.to, toUserName : headerValues.to,
fromUserName : headerValues.from, fromUserName : this.client.user.username,
subject : headerValues.subject, subject : headerValues.subject,
message : this.viewControllers.body.getFormData().value.message, message : this.viewControllers.body.getFormData().value.message,
}; };