mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-16 19:33:50 +01:00
SYWEB-40: Only local rooms are shown in the recents list.
Removed an old patch that deduplicated join events. This patch is now useless. Plus it is buggy since it compared event.content and event.prev_content only on the membership field whereas these objects contain more data now like displayname...
This commit is contained in:
parent
0db0528e8e
commit
b7d42c1e93
1 changed files with 0 additions and 7 deletions
|
@ -232,13 +232,6 @@ function(matrixService, $rootScope, $q, $timeout, mPresence) {
|
||||||
};
|
};
|
||||||
|
|
||||||
var handleRoomMember = function(event, isLiveEvent, isStateEvent) {
|
var handleRoomMember = function(event, isLiveEvent, isStateEvent) {
|
||||||
// if the server is stupidly re-relaying a no-op join, discard it.
|
|
||||||
if (event.prev_content &&
|
|
||||||
event.content.membership === "join" &&
|
|
||||||
event.content.membership === event.prev_content.membership)
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// add membership changes as if they were a room message if something interesting changed
|
// add membership changes as if they were a room message if something interesting changed
|
||||||
// Exception: Do not do this if the event is a room state event because such events already come
|
// Exception: Do not do this if the event is a room state event because such events already come
|
||||||
|
|
Loading…
Reference in a new issue