minor fix

This commit is contained in:
2021-01-07 21:37:06 +08:00
parent a5d70d5c37
commit d7d08e2527
2 changed files with 5 additions and 0 deletions

View File

@@ -186,6 +186,9 @@ PRIMARY KEY (hash)
f"SELECT * FROM RSSList WHERE id='{chatEntry.id}'")
for k in cur:
rssEntry = RSSEntry(k, self._main._setting._maxCount)
rssEntry.chatList.append(chatEntry)
RSSEntries.append(rssEntry)
return RSSEntries
def getUserStatus(self, userId: int) -> (userStatus, str):
with self._value_lock:

View File

@@ -336,6 +336,8 @@ class messageHandle(Thread):
for key in ["new_chat_members", "left_chat_member", "new_chat_title", "new_chat_photo", "delete_chat_photo", "pinned_message"]:
if key in self._data:
return
if self._data['chat']['type'] == 'channel':
return
self._messageId = self._data['message_id']
self._chatId = self.__getChatId()
if self._chatId is None: