Show usernames overridden by Incoming Webhooks in notification messages.

fixes PLT-856
This commit is contained in:
Girish S
2015-10-30 12:44:00 +05:30
parent 8cf5687e8a
commit fec10f5f80

View File

@@ -189,7 +189,9 @@ function handleNewPostEvent(msg) {
}
let username = 'Someone';
if (UserStore.hasProfile(msg.user_id)) {
if (post.props.override_username && global.window.mm_config.EnablePostUsernameOverride === 'true') {
username = post.props.override_username;
} else if (UserStore.hasProfile(msg.user_id)) {
username = UserStore.getProfile(msg.user_id).username;
}