sent_messages: Remove from cache when message has been fully received.

There is no reason to keep these messages in a local memory store once
we have completed sending them and seen their events.
This commit is contained in:
Alex Vandiver 2023-05-03 18:18:40 +00:00 committed by Tim Abbott
parent 3cc2adcd3b
commit c67cd5adb4
1 changed files with 1 additions and 0 deletions

View File

@ -96,6 +96,7 @@ export class MessageState {
setTag("rendered_changed", this.rendered_changed);
setTag("locally_echoed", this.locally_echoed);
this.txn.finish();
messages.delete(this.local_id);
}
}