mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-04 04:04:50 -04:00
switch from the deprecated msg.content.prev to msg.prev_content.membership, and fix the bug where kicks of unjoined users aren't displayed sensibly in the history
This commit is contained in:
parent
be6d41ffe5
commit
1342bcedaf
3 changed files with 9 additions and 9 deletions
|
@ -256,7 +256,7 @@ function(matrixService, $rootScope, $q, $timeout, mPresence) {
|
|||
// could be a membership change, display name change, etc.
|
||||
// Find out which one.
|
||||
var memberChanges = undefined;
|
||||
if (event.content.prev !== event.content.membership) {
|
||||
if (event.prev_content && (event.prev_content.membership !== event.content.membership)) {
|
||||
memberChanges = "membership";
|
||||
}
|
||||
else if (event.prev_content && (event.prev_content.displayname !== event.content.displayname)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue