Do not show banned people in member list. Format ban events strings in room and recent flows

This commit is contained in:
Emmanuel ROHEE 2014-09-03 11:38:24 +02:00
parent 8ad056b207
commit 4ba5b4b55d
3 changed files with 10 additions and 4 deletions

View file

@ -161,6 +161,11 @@ angular.module('RoomController', ['ngSanitize', 'mFileInput'])
var updateMemberList = function(chunk) {
if (chunk.room_id != $scope.room_id) return;
// Ignore banned people
if ("ban" === chunk.membership) {
return;
}
// set target_user_id to keep things clear
var target_user_id = chunk.state_key;