Skip to content
Snippets Groups Projects
Commit 8e8bbb00 authored by Kegan Dougal's avatar Kegan Dougal
Browse files

SYWEB-12: Store unknown state events so they are displayed in the Room Info dialog.

parent d5aa9655
No related branches found
No related tags found
No related merge requests found
......@@ -564,6 +564,13 @@ function(matrixService, $rootScope, $q, $timeout, mPresence) {
handleRedaction(event, isLiveEvent);
break;
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(JSON.stringify(event, undefined, 4));
break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment