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

Commits:

3 changed files:

Changes:

  • gajim/common/modules/omemo.py
    ... ... @@ -502,7 +502,7 @@ def clear_devicelist(self) -> None:
    502 502
     
    
    503 503
         @as_task
    
    504 504
         def request_devicelist(self, jid: Optional[str] = None):
    
    505
    -        _task = yield
    
    505
    +        _task = yield  # noqa
    
    506 506
     
    
    507 507
             if jid is None:
    
    508 508
                 jid = self._own_jid
    

  • gajim/common/storage/omemo.py
    ... ... @@ -633,7 +633,8 @@ def storeLocalData(self,
    633 633
             self._con.commit()
    
    634 634
     
    
    635 635
         def saveIdentity(self, recipientId: int, identityKey: IdentityKey) -> None:
    
    636
    -        query = '''INSERT INTO identities (recipient_id, public_key, trust, shown)
    
    636
    +        query = '''INSERT INTO identities
    
    637
    +                   (recipient_id, public_key, trust, shown)
    
    637 638
                        VALUES(?, ?, ?, ?)'''
    
    638 639
             if not self.containsIdentity(recipientId, identityKey):
    
    639 640
                 trust = self.getDefaultTrust(recipientId)
    

  • pyrightconfig.json
    ... ... @@ -133,4 +133,5 @@
    133 133
             "gajim/plugins/plugins_i18n.py",
    
    134 134
             "gajim/plugins/repository.py"
    
    135 135
         ],
    
    136
    +    "ignore": ["gajim/common/storage/*"]
    
    136 137
     }