mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-10 22:24:55 -04:00
SYWEB-12: Add a 'Room Info' button which displays all state content.
Content displayed in a modal dialog. Currently only read-only.
This commit is contained in:
parent
7d709542ca
commit
d5aa965522
3 changed files with 61 additions and 0 deletions
|
@ -76,6 +76,17 @@ angular.module('matrixWebClient')
|
|||
return filtered;
|
||||
};
|
||||
})
|
||||
.filter('stateEventsFilter', function($sce) {
|
||||
return function(events) {
|
||||
var filtered = {};
|
||||
angular.forEach(events, function(value, key) {
|
||||
if (value && typeof(value.state_key) === "string") {
|
||||
filtered[key] = value;
|
||||
}
|
||||
});
|
||||
return filtered;
|
||||
};
|
||||
})
|
||||
.filter('unsafe', ['$sce', function($sce) {
|
||||
return function(text) {
|
||||
return $sce.trustAsHtml(text);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue