fix(presence): don't cause panic

This commit is contained in:
Jakub Kubík 2022-11-21 22:13:16 +01:00
parent 63ac118d11
commit 77b555f2d6
No known key found for this signature in database
GPG key ID: D3A0D5D60F3A173F

View file

@ -224,7 +224,7 @@ impl service::rooms::edus::presence::Data for KeyValueDatabase {
// TODO: Get rid of this hack (hinting correct types to rustc)
timers.push(create_presence_timer(
Duration::from_secs(1),
idle_timeout,
UserId::parse_with_server_name("conduit", services().globals.server_name())
.expect("Conduit user always exists"),
));