mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-23 11:39:30 -05:00
Again, don't assume all member events have displayname.
This commit is contained in:
parent
fe10b882b7
commit
0b354fcb84
@ -101,7 +101,7 @@ class Pusher(object):
|
||||
|
||||
# This loop does two things:
|
||||
# 1) Find our current display name
|
||||
if mev.state_key == self.user_name:
|
||||
if mev.state_key == self.user_name and 'displayname' in mev.content:
|
||||
my_display_name = mev.content['displayname']
|
||||
|
||||
# and 2) Get the number of people in that room
|
||||
|
Loading…
Reference in New Issue
Block a user