mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-26 19:47:05 +03:00
SYWEB-12: Store unknown state events so they are displayed in the Room Info dialog.
This commit is contained in:
parent
d5aa965522
commit
8e8bbb00f5
1 changed files with 7 additions and 0 deletions
|
@ -564,6 +564,13 @@ function(matrixService, $rootScope, $q, $timeout, mPresence) {
|
||||||
handleRedaction(event, isLiveEvent);
|
handleRedaction(event, isLiveEvent);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
// if it is a state event, then just add it in so it
|
||||||
|
// displays on the Room Info screen.
|
||||||
|
if (typeof(event.state_key) === "string") { // incls. 0-len strings
|
||||||
|
if (event.room_id) {
|
||||||
|
handleRoomDateEvent(event, isLiveEvent, false);
|
||||||
|
}
|
||||||
|
}
|
||||||
console.log("Unable to handle event type " + event.type);
|
console.log("Unable to handle event type " + event.type);
|
||||||
console.log(JSON.stringify(event, undefined, 4));
|
console.log(JSON.stringify(event, undefined, 4));
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue