Skip to content

Commit 5459e7f

Browse files
committed
test: more candidates
1 parent 8c2e2fd commit 5459e7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

efb_telegram_master/master_message.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ def msg(self, update: Update, context: CallbackContext):
217217
if destination is None:
218218
self.logger.debug("[%s] Destination is not found for this message", mid)
219219
candidates = (
220-
self.db.get_recent_slave_chats(TelegramChatID(message.chat.id), limit=5) or
220+
self.db.get_recent_slave_chats(TelegramChatID(message.chat.id), limit=5) and
221221
self.db.get_chat_assoc(master_uid=utils.chat_id_to_str(self.channel_id, ChatID(str(message.chat.id))))[:5]
222222
)
223223
if candidates:

0 commit comments

Comments
 (0)