Add back button to RHS threads from pinned posts (#6306)

Этот коммит содержится в:
Joram Wilander
2017-05-03 11:55:06 -04:00
коммит произвёл Corey Hulen
родитель 6a6c5365d3
Коммит ec5f40a423
7 изменённых файлов: 31 добавлений и 9 удалений

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

@@ -168,7 +168,8 @@ export function emitPostFocusRightHandSideFromSearch(post, isMentionSearch) {
type: ActionTypes.RECEIVED_POST_SELECTED,
postId: Utils.getRootId(post),
from_search: SearchStore.getSearchTerm(),
from_flagged_posts: SearchStore.getIsFlaggedPosts()
from_flagged_posts: SearchStore.getIsFlaggedPosts(),
from_pinned_posts: SearchStore.getIsPinnedPosts()
});
AppDispatcher.handleServerAction({

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

@@ -142,7 +142,7 @@ export function getFlaggedPosts() {
);
}
export function getPinnedPosts(channelId) {
export function getPinnedPosts(channelId = ChannelStore.getCurrentId()) {
Client.getPinnedPosts(channelId,
(data) => {
AppDispatcher.handleServerAction({