Daniel Brötzmann pushed to branch omemo_integration at gajim / gajim


Commits:
464355f3 by wurstsalat at 2022-10-15T13:40:12+02:00
cq: OMEMO: Add type annotations

- - - - -


2 changed files:

- gajim/common/events.py
- gajim/common/modules/omemo.py


Changes:

=====================================
gajim/common/events.py
=====================================
@@ -779,6 +779,7 @@ class MUCUserStatusShowChanged(ApplicationEvent):
     show_value: str
 
 
+@dataclass
 class OMEMONewFingerprint(ApplicationEvent):
     name: str = field(init=False, default='omemo-new-fingerprint')
     chat_control: Any


=====================================
gajim/common/modules/omemo.py
=====================================
@@ -297,7 +297,10 @@ def _process_muc_message(self,
             return
         return from_jid
 
-    def _process_mam_message(self, properties: MessageProperties) -> str:
+    def _process_mam_message(self,
+                             properties: MessageProperties
+                             ) -> Optional[str]:
+
         self._log.info('Message received, archive: %s', properties.mam.archive)
         if properties.from_muc:
             self._log.info('MUC MAM Message received')



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/464355f388a2ddb1bf490d46f611901397f09436

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


_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to