Chore: Remove selectedChat from store (#1087)

* Chore: Remove selected chat from store
This commit is contained in:
Pranav Raj S
2020-07-23 23:33:17 +05:30
committed by GitHub
parent e72f29a26e
commit c7d962b20f
7 changed files with 76 additions and 84 deletions

View File

@@ -58,9 +58,7 @@ describe('#getters', () => {
id: 2,
},
],
selectedChat: {
id: 1,
},
selectedChatId: 1,
};
expect(getters.getNextChatConversation(state)).toEqual({
id: 2,
@@ -73,9 +71,7 @@ describe('#getters', () => {
id: 1,
},
],
selectedChat: {
id: 1,
},
selectedChatId: 1,
};
expect(getters.getNextChatConversation(state)).toBeNull();
});