mirror of
https://mau.dev/maunium/synapse.git
synced 2024-08-27 12:42:39 +00: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:
|
# This loop does two things:
|
||||||
# 1) Find our current display name
|
# 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']
|
my_display_name = mev.content['displayname']
|
||||||
|
|
||||||
# and 2) Get the number of people in that room
|
# and 2) Get the number of people in that room
|
||||||
|
Loading…
Reference in New Issue
Block a user