-
- Downloads
Update local read marker before posting read receipt
Summary: Before, we only used the m.receipt event from sync as the criterion for whether an event is read. This does not allow us to mark the event as read if the server is not reachable, or when the server's ordering is different from the client's. This commit makes it possible to mark an event as read under such circumstances. Type: fix BUG: https://iron.lily-is.land/T113 Test Plan: Verify unit tests pass. Reviewers: Subscribers:
- src/client/actions/ephemeral.cpp 7 additions, 1 deletionsrc/client/actions/ephemeral.cpp
- src/client/room/room-model.cpp 34 additions, 11 deletionssrc/client/room/room-model.cpp
- src/client/room/room-model.hpp 9 additions, 1 deletionsrc/client/room/room-model.hpp
- src/client/room/room.cpp 6 additions, 0 deletionssrc/client/room/room.cpp
- src/client/room/room.hpp 7 additions, 0 deletionssrc/client/room/room.hpp
- src/tests/client/room/read-receipt-test.cpp 81 additions, 18 deletionssrc/tests/client/room/read-receipt-test.cpp