Fix from username in message post
This commit is contained in:
parent
f85388e747
commit
aa40d998b2
|
@ -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,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue