buffer: Handle an empty user part of an user id.
This commit is contained in:
parent
3785cd0bee
commit
59b034737e
1 changed files with 1 additions and 1 deletions
|
@ -708,7 +708,7 @@ class RoomBuffer(object):
|
||||||
short_name = shorten_sender(user.user_id)
|
short_name = shorten_sender(user.user_id)
|
||||||
|
|
||||||
# TODO make this configurable
|
# TODO make this configurable
|
||||||
if short_name in self.displayed_nicks.values():
|
if not short_name or short_name in self.displayed_nicks.values():
|
||||||
# Use the full user id, but don't include the @
|
# Use the full user id, but don't include the @
|
||||||
nick = event.sender[1:]
|
nick = event.sender[1:]
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Reference in a new issue