mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-08 07:28:26 +00:00
Merge commit from fork
* Validate room upgrade relationships properly Ensures only correctly related rooms are left when leaving the latest version of a room. Ensures the room list does not wrongly hide rooms which have not yet been upgraded. Ensures the breadcrumbs store finds the correct latest version of a room for a given stored room. Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Tests Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --------- Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
committed by
GitHub
parent
9a11a80483
commit
8e9a43d70c
@@ -115,6 +115,10 @@ describe("RoomListStore", () => {
|
||||
// Given a store we can spy on
|
||||
const { store, handleRoomUpdate } = createStore();
|
||||
|
||||
mocked(client.getRoomUpgradeHistory).mockImplementation((roomId) =>
|
||||
roomId === roomWithCreatePredecessor.roomId ? [oldRoom, roomWithCreatePredecessor] : [],
|
||||
);
|
||||
|
||||
// When we tell it we joined a new room that has an old room as
|
||||
// predecessor in the create event
|
||||
const payload = {
|
||||
|
||||
Reference in New Issue
Block a user