diff options
author | Matthew Hodgson <matthew@matrix.org> | 2014-10-24 16:14:47 +0100 |
---|---|---|
committer | Matthew Hodgson <matthew@matrix.org> | 2014-10-24 16:14:47 +0100 |
commit | 1342bcedaf1ddf0f45009e7f771f51ee0c32ca6f (patch) | |
tree | 3288b0ba4adb7a2c359dff7b1257fe7db7368d9a /webclient/components | |
parent | Merge branch 'master' into develop (diff) | |
download | synapse-1342bcedaf1ddf0f45009e7f771f51ee0c32ca6f.tar.xz |
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
Diffstat (limited to 'webclient/components')
-rw-r--r-- | webclient/components/matrix/event-handler-service.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/webclient/components/matrix/event-handler-service.js b/webclient/components/matrix/event-handler-service.js index 492ec08bca..112b3ad96c 100644 --- a/webclient/components/matrix/event-handler-service.js +++ b/webclient/components/matrix/event-handler-service.js @@ -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)) { |