Silence warning

This commit is contained in:
Bryan Ashby 2017-08-26 20:26:41 -06:00
parent 4914bb9003
commit 968a22c5eb
1 changed files with 12 additions and 10 deletions

View File

@ -701,16 +701,18 @@ exports.FullScreenEditorModule = exports.getModule = class FullScreenEditorModul
break; break;
case 'edit' : case 'edit' :
const fromView = self.viewControllers.header.getView(1); {
const area = getMessageAreaByTag(self.messageAreaTag); const fromView = self.viewControllers.header.getView(1);
if(area && area.realNames) { const area = getMessageAreaByTag(self.messageAreaTag);
fromView.setText(self.client.user.properties.real_name || self.client.user.username); if(area && area.realNames) {
} else { fromView.setText(self.client.user.properties.real_name || self.client.user.username);
fromView.setText(self.client.user.username); } else {
} fromView.setText(self.client.user.username);
}
if(self.replyToMessage) {
self.initHeaderReplyEditMode(); if(self.replyToMessage) {
self.initHeaderReplyEditMode();
}
} }
break; break;
} }