mirror of
https://mau.dev/maunium/synapse.git
synced 2024-11-19 00:11:47 +01:00
fix NPE
This commit is contained in:
parent
512f2cc9c4
commit
997a016122
1 changed files with 1 additions and 2 deletions
|
@ -260,8 +260,7 @@ function(matrixService, $rootScope, $q, $timeout, mPresence) {
|
||||||
if (event.content.prev !== event.content.membership) {
|
if (event.content.prev !== event.content.membership) {
|
||||||
memberChanges = "membership";
|
memberChanges = "membership";
|
||||||
}
|
}
|
||||||
else if (event.prev_content.displayname !==
|
else if (event.prev_content && (event.prev_content.displayname !== event.content.displayname)) {
|
||||||
event.content.displayname) {
|
|
||||||
memberChanges = "displayname";
|
memberChanges = "displayname";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue