patch 24d0a1e56c3957fbf4257882a52f2b98706b9fcd
Author: E. Bosch <presidev@AT@gmail.com>
Date: Fri Mar 17 23:03:05 CET 2023
* telegram: Minor optimization in set_irc_channel_from_telegram()
diff -rN -u old-irgramd/telegram.py new-irgramd/telegram.py
--- old-irgramd/telegram.py 2024-11-22 22:02:24.884346020 +0100
+++ new-irgramd/telegram.py 2024-11-22 22:02:24.884346020 +0100
@@ -143,8 +143,8 @@
async def set_irc_channel_from_telegram(self, chat):
channel = self.get_telegram_channel(chat)
self.tid_to_iid[-chat.id] = channel
- self.irc.iid_to_tid[channel.lower()] = -chat.id
chan = channel.lower()
+ self.irc.iid_to_tid[chan] = -chat.id
# Add users from the channel
async for user in self.telegram_client.iter_participants(chat.id):
user_nick = self.set_ircuser_from_telegram(user)