Skip to content

Commit 529a854

Browse files
committed
chore(ffi): report an error if the timeline is set to report UTDs but the hook manager isn't configured
1 parent a8b3b39 commit 529a854

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bindings/matrix-sdk-ffi/src/room.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,8 @@ impl Room {
236236
if configuration.report_utds {
237237
if let Some(utd_hook_manager) = self.utd_hook_manager.clone() {
238238
builder = builder.with_unable_to_decrypt_hook(utd_hook_manager);
239+
} else {
240+
return Err(ClientError::Generic { msg: "Failed creating timeline because the configuration is set to report UTDs but no hook manager is set".to_owned(), details: None });
239241
}
240242
}
241243

0 commit comments

Comments
 (0)