Philipp Hörist pushed to branch storage at gajim / gajim


Commits:
861f7b42 by Philipp Hörist at 2023-07-03T23:37:08+02:00
Add joined data property

- - - - -


1 changed file:

- gajim/common/events.py


Changes:

=====================================
gajim/common/events.py
=====================================
@@ -373,6 +373,10 @@ class MessageCorrected(ApplicationEvent):
     jid: JID
     entitykey: int
 
+    @cached_property
+    def joined_data(self) -> DbConversationJoinedData:
+        return app.storage.archive.get_message_with_entitykey(self.entitykey)
+
 
 @dataclass
 class MessageModerated(ApplicationEvent):



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/861f7b42f8909fc948e1608602b80786da920d5b

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/861f7b42f8909fc948e1608602b80786da920d5b
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to