Update controllers.py

updated can_send_messages to fix message send feature
This commit is contained in:
mindtheegab 2024-01-10 12:01:10 +01:00 committed by GitHub
parent 2b0c0cf199
commit 13e2b26698
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -486,7 +486,7 @@ class Controller:
def can_send_msg(self) -> bool: def can_send_msg(self) -> bool:
chat = self.model.chats.chats[self.model.current_chat] chat = self.model.chats.chats[self.model.current_chat]
return chat["permissions"]["can_send_messages"] return chat["permissions"]["can_send_basic_messages"]
def _open_msg(self, msg: MsgProxy, cmd: str = None) -> None: def _open_msg(self, msg: MsgProxy, cmd: str = None) -> None:
if msg.is_text: if msg.is_text: