|
|
@ -21,7 +21,7 @@ const conversationToMap = item => ImmutableMap({
|
|
|
|
id: item.id,
|
|
|
|
id: item.id,
|
|
|
|
unread: item.unread,
|
|
|
|
unread: item.unread,
|
|
|
|
accounts: ImmutableList(item.accounts.map(a => a.id)),
|
|
|
|
accounts: ImmutableList(item.accounts.map(a => a.id)),
|
|
|
|
last_status: item.last_status.id,
|
|
|
|
last_status: item.last_status ? item.last_status.id : null,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
const updateConversation = (state, item) => state.update('items', list => {
|
|
|
|
const updateConversation = (state, item) => state.update('items', list => {
|
|
|
|