Conflicts:
	webapp/components/create_comment.jsx
Этот коммит содержится в:
JoramWilander
2016-06-13 15:29:24 -04:00
родитель bb5ca5a878 974238231b
Коммит 5af526c259
29 изменённых файлов: 258 добавлений и 143 удалений

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

@@ -552,7 +552,7 @@ PostStore.dispatchToken = AppDispatcher.register((payload) => {
switch (action.type) {
case ActionTypes.RECEIVED_POSTS: {
const id = PostStore.currentFocusedPostId == null ? action.id : PostStore.currentFocusedPostId;
const id = PostStore.currentFocusedPostId !== null && action.isPost ? PostStore.currentFocusedPostId : action.id;
PostStore.storePosts(id, makePostListNonNull(action.post_list));
PostStore.checkBounds(id, action.numRequested, makePostListNonNull(action.post_list), action.before);
PostStore.emitChange();

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

@@ -104,7 +104,7 @@ class UserStoreClass extends EventEmitter {
this.currentUserId = user.id;
global.window.mm_current_user_id = this.currentUserId;
if (LocalizationStore.getLocale() !== user.locale) {
GlobalActions.newLocalizationSelected(user.locale);
setTimeout(() => GlobalActions.newLocalizationSelected(user.locale), 0);
}
}