mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Fix channel invite button on channel intro message and fix empty channel invite modal.
This commit is contained in:
@@ -193,13 +193,13 @@ class UserStoreClass extends EventEmitter {
|
||||
return BrowserStore.getItem('profiles', {});
|
||||
}
|
||||
|
||||
getActiveOnlyProfiles() {
|
||||
getActiveOnlyProfiles(skipCurrent) {
|
||||
const active = {};
|
||||
const profiles = this.getProfiles();
|
||||
const currentId = this.getCurrentId();
|
||||
|
||||
for (var key in profiles) {
|
||||
if (profiles[key].delete_at === 0 && profiles[key].id !== currentId) {
|
||||
if (!(profiles[key].id === currentId && skipCurrent) && profiles[key].delete_at === 0) {
|
||||
active[key] = profiles[key];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user