fix: avoid panic when client is confused about rooms

This commit is contained in:
Timo Kösters authored and June committed 2024-02-28 13:56:19 -05:00
1 parent 8e0f7b0d0a
commit f0ae99125a
3 files changed
+20 -2

No files matched your search

+1 -1
View File
@@ -330,7 +330,7 @@ fn count_to_id(
.rooms
.short
.get_shortroomid(room_id)?
.expect("room exists")
.ok_or_else(|| Error::bad_database("Looked for bad shortroomid in timeline"))?
.to_be_bytes()
.to_vec();
let mut pdu_id = prefix.clone();