1
0
Fork 0
mirror of https://gitlab.com/famedly/conduit.git synced 2025-06-27 16:35:59 +00:00

fix: avoid panic when client is confused about rooms

This commit is contained in:
Timo Kösters 2024-02-28 16:24:26 +01:00
parent f4e57fdb22
commit d7fd89df49
No known key found for this signature in database
GPG key ID: 0B25E636FBA7E4CB
3 changed files with 20 additions and 2 deletions

View file

@ -331,7 +331,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();