From c67cd5adb4cdaf86d4917d79d3667bdf6a8ca98a Mon Sep 17 00:00:00 2001 From: Alex Vandiver Date: Wed, 3 May 2023 18:18:40 +0000 Subject: [PATCH] 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. --- web/src/sent_messages.js | 1 + 1 file changed, 1 insertion(+) diff --git a/web/src/sent_messages.js b/web/src/sent_messages.js index 9a00106e83..50fc65affe 100644 --- a/web/src/sent_messages.js +++ b/web/src/sent_messages.js @@ -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); } }