summary refs log tree commit diff
path: root/webclient/app-filter.js
diff options
context:
space:
mode:
authorKegan Dougal <kegan@matrix.org>2014-10-30 11:14:29 +0000
committerKegan Dougal <kegan@matrix.org>2014-10-30 11:15:44 +0000
commitd5aa9655223d5a57b76194b155a6366791dd084c (patch)
treec0e13896fbe7394d3ad1e857d5bef4fb40dcac80 /webclient/app-filter.js
parentFix pep8 warnings (diff)
downloadsynapse-d5aa9655223d5a57b76194b155a6366791dd084c.tar.xz
SYWEB-12: Add a 'Room Info' button which displays all state content.
Content displayed in a modal dialog. Currently only read-only.
Diffstat (limited to 'webclient/app-filter.js')
-rw-r--r--webclient/app-filter.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/webclient/app-filter.js b/webclient/app-filter.js

index 39ea1d637d..f19db4141d 100644 --- a/webclient/app-filter.js +++ b/webclient/app-filter.js
@@ -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);