buffer: Handle an empty user part of an user id.

This commit is contained in:
Damir Jelić 2018-07-21 19:55:03 +02:00
parent 3785cd0bee
commit 59b034737e

View file

@ -708,7 +708,7 @@ class RoomBuffer(object):
short_name = shorten_sender(user.user_id)
# 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 @
nick = event.sender[1:]
else: