minor bug fix.

This commit is contained in:
2021-01-08 15:41:52 +08:00
parent 1db56a5a26
commit 66b1969a37

View File

@@ -494,7 +494,7 @@ class messageHandle(Thread):
if i.find('://') > -1:
self._uri = i
break
if self._data['chat']['type'] != "private" and checkUserPermissionsInChat(self._main, chatId, self._fromUserId) != UserPermissionsInChatCheckResult.OK:
if self._data['chat']['type'] != "private" and checkUserPermissionsInChat(self._main, self._data['chat']['id'], self._fromUserId) != UserPermissionsInChatCheckResult.OK:
di['text'] = '你没有权限操作。'
self._uri = None
elif self._uri is None: