mirror of
https://github.com/element-hq/synapse
synced 2024-09-04 20:40:06 +00:00
HandleRoomMember: handle correctly prev_content
This commit is contained in:
parent
6603e39e6a
commit
cf1feee21d
1 changed files with 1 additions and 1 deletions
|
@ -256,7 +256,7 @@ function(matrixService, $rootScope, $q, $timeout, mPresence) {
|
||||||
// could be a membership change, display name change, etc.
|
// could be a membership change, display name change, etc.
|
||||||
// Find out which one.
|
// Find out which one.
|
||||||
var memberChanges = undefined;
|
var memberChanges = undefined;
|
||||||
if (event.prev_content && (event.prev_content.membership !== event.content.membership)) {
|
if ((event.prev_content === undefined && event.content.membership) || (event.prev_content && (event.prev_content.membership !== event.content.membership))) {
|
||||||
memberChanges = "membership";
|
memberChanges = "membership";
|
||||||
}
|
}
|
||||||
else if (event.prev_content && (event.prev_content.displayname !== event.content.displayname)) {
|
else if (event.prev_content && (event.prev_content.displayname !== event.content.displayname)) {
|
||||||
|
|
Loading…
Reference in a new issue