You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-30 02:21:17 +03:00
Let TimelinePanel not send a receipt if there is no event (#10912)
This commit is contained in:
@ -242,6 +242,18 @@ describe("TimelinePanel", () => {
|
||||
TimelinePanel.roomReadMarkerTsMap = {};
|
||||
});
|
||||
|
||||
it("when there is no event, it should not send any receipt", async () => {
|
||||
setUpTimelineSet();
|
||||
await renderTimelinePanel();
|
||||
await flushPromises();
|
||||
|
||||
// @ts-ignore
|
||||
await timelinePanel.sendReadReceipts();
|
||||
|
||||
expect(client.setRoomReadMarkers).not.toHaveBeenCalled();
|
||||
expect(client.sendReadReceipt).not.toHaveBeenCalled();
|
||||
});
|
||||
|
||||
describe("when there is a non-threaded timeline", () => {
|
||||
beforeEach(() => {
|
||||
setUpTimelineSet();
|
||||
|
Reference in New Issue
Block a user