Merge pull request #1652 from hmhealey/plt1319

PLT-1319 Fixed direct channels not being visible when no actual channel exists
Этот коммит содержится в:
Corey Hulen
2015-12-11 06:40:37 -08:00
родитель 607a8151de c55e7895d9
Коммит 412b45431a
10 изменённых файлов: 177 добавлений и 40 удалений

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

@@ -136,6 +136,10 @@ class SocketStoreClass extends EventEmitter {
handleChannelViewedEvent(msg);
break;
case SocketEvents.PREFERENCE_CHANGED:
handlePreferenceChangedEvent(msg);
break;
default:
}
}
@@ -281,6 +285,11 @@ function handleChannelViewedEvent(msg) {
}
}
function handlePreferenceChangedEvent(msg) {
const preference = JSON.parse(msg.props.preference);
EventHelpers.emitPreferenceChangedEvent(preference);
}
var SocketStore = new SocketStoreClass();
/*SocketStore.dispatchToken = AppDispatcher.register((payload) => {