Add support for Matrix displaynames in relaybot messages

This commit is contained in:
Tulir Asokan
2018-06-24 01:24:14 +03:00
parent f5c4b477e5
commit 4a0d00e74c
5 changed files with 94 additions and 33 deletions
+1 -1
View File
@@ -68,9 +68,9 @@ class User(AbstractUser):
match = re.compile("@(.+):(.+)").match(self.mxid)
return match.group(1)
# TODO replace with proper displayname getting everywhere
@property
def displayname(self):
# TODO show better display name
return self.mxid_localpart
@property