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

Commits:

2 changed files:

Changes:

  • gajim/common/storage/omemo.py
    ... ... @@ -603,7 +603,7 @@ def getIdentityKeyPair(self) -> IdentityKeyPair:
    603 603
             return IdentityKeyPair.new(result.public_key,
    
    604 604
                                        DjbECPrivateKey(result.private_key))
    
    605 605
     
    
    606
    -    def getLocalRegistrationId(self) -> Optional[int]:
    
    606
    +    def getLocalRegistrationId(self) -> Optional[int]:  # pyright: ignore
    
    607 607
             query = 'SELECT device_id FROM secret LIMIT 1'
    
    608 608
             result = self._con.execute(query).fetchone()
    
    609 609
             return result.device_id if result is not None else None
    

  • gajim/gtk/omemo_trust_manager.py
    ... ... @@ -153,7 +153,7 @@ def update(self) -> None:
    153 153
         def _on_destroy(self, *args: Any) -> None:
    
    154 154
             self.unregister_events()
    
    155 155
             self._ui.list.set_filter_func(None)
    
    156
    -        self._ui.search.disconnect_by_func(self._on_search_changed)
    
    156
    +        self._ui.search.disconnect_by_func(self._on_search_changed)  # pyright: ignore
    
    157 157
             app.check_finalize(self)
    
    158 158
     
    
    159 159
         def _on_account_state(self,