mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Show usernames overridden by Incoming Webhooks in notification messages.
fixes PLT-856
This commit is contained in:
@@ -189,7 +189,9 @@ function handleNewPostEvent(msg) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let username = 'Someone';
|
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;
|
username = UserStore.getProfile(msg.user_id).username;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user