Skip to content

Commit f83d491

Browse files
authored
revert proposed by @jiz4oh
1 parent d9c0341 commit f83d491

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
@@ -218,7 +218,7 @@ def msg(self, update: Update, context: CallbackContext):
218218
if destination is None:
219219
self.logger.debug("[%s] Destination is not found for this message", mid)
220220
candidates = (
221-
self.db.get_recent_slave_chats(TelegramChatID(message.chat.id), limit=5) and
221+
self.db.get_recent_slave_chats(TelegramChatID(message.chat.id), limit=5) or
222222
self.db.get_chat_assoc(master_uid=utils.chat_id_to_str(self.channel_id, ChatID(str(message.chat.id))))[:5]
223223
)
224224
if candidates:

0 commit comments

Comments
 (0)