changeset 1596:52098b5bab8d

browser (chat): add data for reactions
author Goffi <goffi@goffi.org>
date Wed, 13 Dec 2023 22:06:05 +0100
parents 7941444c1671
children c1c1d68d063e
files libervia/web/pages/chat/_browser/__init__.py
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libervia/web/pages/chat/_browser/__init__.py	Wed Dec 13 22:05:48 2023 +0100
+++ b/libervia/web/pages/chat/_browser/__init__.py	Wed Dec 13 22:06:05 2023 +0100
@@ -189,7 +189,12 @@
                 log.debug(f"Message {uid} not found, no reactions to update")
             else:
                 log.debug(f"Message {uid} found, new reactions: {reactions}")
-                reactions_elt = self.reactions_tpl.get_elt({"reactions": reactions})
+                reactions_elt = self.reactions_tpl.get_elt(
+                    {
+                        "chat_type": chat_type,
+                        "own_local_jid": str(own_local_jid),
+                        "reactions": reactions
+                    })
                 reactions_wrapper_elt.clear()
                 reactions_wrapper_elt <= reactions_elt
                 self.add_reactions_listeners(reactions_elt)