Add separator between DMs on your team and not (#2910)

Этот коммит содержится в:
Joram Wilander
2016-05-06 12:08:58 -04:00
родитель d2f9fd52fe
Коммит 0cfcf5c5de
7 изменённых файлов: 47 добавлений и 4 удалений

Просмотреть файл

@@ -114,6 +114,14 @@ class UserStoreClass extends EventEmitter {
return this.getProfile(userId) != null;
}
hasTeamProfile(userId) {
return this.getProfiles()[userId];
}
hasDirectProfile(userId) {
return this.getDirectProfiles()[userId];
}
getProfile(userId) {
if (userId === this.getCurrentId()) {
return this.getCurrentUser();
@@ -194,7 +202,7 @@ class UserStoreClass extends EventEmitter {
const currentUser = this.profiles[currentId];
if (currentUser) {
if (currentId in this.profiles) {
delete this.profiles[currentId];
Reflect.deleteProperty(this.profiles, currentId);
}
this.profiles = profiles;