Skip to content

Commit

Permalink
don't send help in 1:1 in communities
Browse files Browse the repository at this point in the history
  • Loading branch information
adbenitez committed May 27, 2024
1 parent 779391b commit a8514fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion matterdelta/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def _bridge(bot: Bot, accid: int, event: NewMsgEvent) -> None:
community = bot.rpc.get_config(accid, "is_community") == "1"
except JsonRpcError:
community = False
if not community or msg.from_id > SpecialContactId.LAST_SPECIAL:
if not community:
_send_help(bot, accid, msg.chat_id)
else:
dc2mb(bot, accid, msg)
Expand Down

0 comments on commit a8514fc

Please sign in to comment.