Explorar o código

Fix rejecting Matrix invites when Signal invite fails

Tulir Asokan %!s(int64=3) %!d(string=hai) anos
pai
achega
38ff3e0dda
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      mautrix_signal/portal.py

+ 1 - 1
mautrix_signal/portal.py

@@ -773,7 +773,7 @@ class Portal(DBPortal, BasePortal):
                 invited_by.username, self.chat_id, add_members=[user.address]
             )
         except RPCError as e:
-            raise RejectMatrixInvite(e.message) from e
+            raise RejectMatrixInvite(str(e)) from e
 
     async def handle_matrix_name(self, user: u.User, name: str) -> None:
         if self.name == name or self.is_direct or not name: