0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-12-15 08:13:48 +01:00

Report ban/unban messages to recents lists

This commit is contained in:
Emmanuel ROHEE 2014-09-04 09:08:34 +02:00
parent 9f633bc125
commit 82cf76a8f9

View file

@ -16,15 +16,26 @@
<tr> <tr>
<td colspan="2" class="recentsRoomSummary"> <td colspan="2" class="recentsRoomSummary">
<div ng-show="room.membership === 'invite'" >
{{ room.inviter }} invited you
</div>
<div ng-hide="room.membership === 'invite'" ng-switch="room.lastMsg.type" > <div ng-hide="room.membership === 'invite'" ng-switch="room.lastMsg.type" >
<div ng-switch-when="m.room.member"> <div ng-switch-when="m.room.member">
{{ room.lastMsg.user_id }} <span ng-if="'join' === room.lastMsg.content.membership">
{{ {"join": "joined", "leave": "left", "invite": "invited", "ban": "banned"}[msg.content.membership] }} {{ room.lastMsg.state_key }} joined
{{ (msg.content.membership === "invite" || msg.content.membership === "ban") ? (msg.state_key || '') : '' }} </span>
<span ng-if="'leave' === room.lastMsg.content.membership">
<span ng-if="room.lastMsg.user_id === room.lastMsg.state_key">
{{room.lastMsg.state_key }} left
</span>
<span ng-if="room.lastMsg.user_id !== room.lastMsg.state_key">
{{ room.lastMsg.user_id }}
{{ {"join": "kicked", "ban": "unbanned"}[room.lastMsg.content.prev] }}
{{ room.lastMsg.state_key }}
</span>
</span>
<span ng-if="'invite' === room.lastMsg.content.membership || 'ban' === room.lastMsg.content.membership">
{{ room.lastMsg.user_id }}
{{ {"invite": "invited", "ban": "banned"}[room.lastMsg.content.membership] }}
{{ room.lastMsg.state_key }}
</span>
</div> </div>
<div ng-switch-when="m.room.message"> <div ng-switch-when="m.room.message">