Skip to content

Commit

Permalink
fix channel name translation?
Browse files Browse the repository at this point in the history
  • Loading branch information
singingtelegram authored Nov 1, 2022
1 parent 6523a3b commit 1d9c945
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion slackbridge/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def chan_replace(match: Match[str]) -> str:
"""
chan_id = match.group(1)
readable = match.group(2)
return f'#{readable or channels[chan_id]}'
return f'#{readable or channels[chan_id].get('name')}'

def user_replace(match: Match[str]) -> str:
"""
Expand Down

0 comments on commit 1d9c945

Please sign in to comment.