You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-08-07 21:23:00 +03:00
Examine all m.direct rooms to find a DM as fallback (#10127)
This commit is contained in:
@@ -53,8 +53,8 @@ describe("findDMRoom", () => {
|
||||
expect(findDMRoom(mockClient, [member1])).toBe(room1);
|
||||
});
|
||||
|
||||
it("should return null for a single target without a room", () => {
|
||||
mocked(findDMForUser).mockReturnValue(null);
|
||||
it("should return undefined for a single target without a room", () => {
|
||||
mocked(findDMForUser).mockReturnValue(undefined);
|
||||
expect(findDMRoom(mockClient, [member1])).toBeNull();
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user