Merge pull request #13 from NullIsNot0/fix-room-names-patch

Fix room name retrieval after Synapse dropped table room_names
This commit is contained in:
ma1uta
2020-01-25 10:50:55 +00:00
committed by GitHub

View File

@@ -72,7 +72,7 @@ public class SynapseQueries {
} }
public static String getRoomName() { public static String getRoomName() {
return "select r.name from room_names r, events e, (select r1.room_id,max(e1.origin_server_ts) ts from room_names r1, events e1 where r1.event_id = e1.event_id group by r1.room_id) rle where e.origin_server_ts = rle.ts and r.event_id = e.event_id and r.room_id = ?"; return "select name from room_stats_state where room_id = ? limit 1";
} }
} }