File tree 2 files changed +8
-2
lines changed
bindings/matrix-sdk-ffi/src 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -237,8 +237,10 @@ impl Room {
237
237
builder = builder. with_internal_id_prefix ( internal_id_prefix) ;
238
238
}
239
239
240
- if let Some ( utd_hook) = self . utd_hook . clone ( ) {
241
- builder = builder. with_unable_to_decrypt_hook ( utd_hook) ;
240
+ if configuration. report_utds {
241
+ if let Some ( utd_hook) = self . utd_hook . clone ( ) {
242
+ builder = builder. with_unable_to_decrypt_hook ( utd_hook) ;
243
+ }
242
244
}
243
245
244
246
let timeline = builder. build ( ) . await ?;
Original file line number Diff line number Diff line change @@ -157,4 +157,8 @@ pub struct TimelineConfiguration {
157
157
/// As this has a non negligible performance impact, make sure to enable it
158
158
/// only when you need it.
159
159
pub track_read_receipts : bool ,
160
+
161
+ /// Whether this timeline instance should report UTDs through the client's
162
+ /// delegate.
163
+ pub report_utds : bool ,
160
164
}
You can’t perform that action at this time.
0 commit comments