Set local echoes as room last events
This commit is contained in:
parent
9ca66b6044
commit
cf8ae13eae
1
TODO.md
1
TODO.md
|
@ -39,7 +39,6 @@
|
||||||
|
|
||||||
- Combine events so they take less space
|
- Combine events so they take less space
|
||||||
- After combining is implemented, no need to hide our own profile changes.
|
- After combining is implemented, no need to hide our own profile changes.
|
||||||
- Room last activity time in RoomDelegate
|
|
||||||
- When starting a long task, e.g. importing keys, quitting the page,
|
- When starting a long task, e.g. importing keys, quitting the page,
|
||||||
and coming back, show the buttons as still loading until operation is done
|
and coming back, show the buttons as still loading until operation is done
|
||||||
- Make invite/left banners look better in column mode
|
- Make invite/left banners look better in column mode
|
||||||
|
|
|
@ -198,6 +198,8 @@ class MatrixClient(nio.AsyncClient):
|
||||||
if user_id in self.models[Member, room_id]:
|
if user_id in self.models[Member, room_id]:
|
||||||
self.models[Event, user_id, room_id][f"echo-{uuid}"] = local
|
self.models[Event, user_id, room_id][f"echo-{uuid}"] = local
|
||||||
|
|
||||||
|
await self.set_room_last_event(room_id, local)
|
||||||
|
|
||||||
async with self.send_locks[room_id]:
|
async with self.send_locks[room_id]:
|
||||||
response = await self.room_send(
|
response = await self.room_send(
|
||||||
room_id = room_id,
|
room_id = room_id,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user