Fix channel invite button on channel intro message and fix empty channel invite modal.

This commit is contained in:
JoramWilander
2015-11-11 12:53:18 -05:00
parent e32b92052e
commit 782709aa56
4 changed files with 23 additions and 18 deletions

View File

@@ -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];
}
}