Progress with DMs
Progress with DMs
This commit is contained in:
@@ -9,11 +9,10 @@ import {
|
||||
SET_CHAT_CONVERSATION_SELECTED,
|
||||
} from '../actions/chats'
|
||||
import {
|
||||
CHAT_CONVERSATION_APPROVED_UNREAD_COUNT_FETCH_SUCCESS,
|
||||
CHAT_CONVERSATION_REQUESTED_COUNT_FETCH_SUCCESS,
|
||||
} from '../actions/chat_conversations'
|
||||
import {
|
||||
CHAT_MESSAGES_SEND_SUCCESS,
|
||||
CHAT_MESSAGES_DELETE_REQUEST,
|
||||
CHAT_MESSAGES_FETCH_SUCCESS,
|
||||
CHAT_CONVERSATION_MESSAGES_EXPAND_SUCCESS,
|
||||
} from '../actions/chat_messages'
|
||||
@@ -22,6 +21,7 @@ const initialState = ImmutableMap({
|
||||
createChatConversationSuggestionIds: ImmutableList(),
|
||||
selectedChatConversationId: null,
|
||||
chatConversationRequestCount: 0,
|
||||
chatsUnreadCount: 0,
|
||||
})
|
||||
|
||||
export default function chats(state = initialState, action) {
|
||||
@@ -32,6 +32,8 @@ export default function chats(state = initialState, action) {
|
||||
return state.set('selectedChatConversationId', action.chatConversationId)
|
||||
case CHAT_CONVERSATION_REQUESTED_COUNT_FETCH_SUCCESS:
|
||||
return state.set('chatConversationRequestCount', action.count)
|
||||
case CHAT_CONVERSATION_APPROVED_UNREAD_COUNT_FETCH_SUCCESS:
|
||||
return state.set('chatsUnreadCount', action.count)
|
||||
default:
|
||||
return state
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user