File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ All notable changes to this project will be documented in this file.
8
8
9
9
Breaking changes:
10
10
11
+ - ` Client::send_call_notification_if_needed ` now returns ` Result<bool> ` instead of ` Result<()> ` so we can check if
12
+ the event was sent.
11
13
- ` Client::upload_avatar ` and ` Timeline::send_attachment ` now may fail if a file too large for the homeserver media
12
14
config is uploaded.
13
15
- ` UploadParameters ` replaces field ` filename: String ` with ` source: UploadSource ` .
Original file line number Diff line number Diff line change @@ -777,9 +777,13 @@ impl Room {
777
777
/// It will configure the notify type: ring or notify based on:
778
778
/// - is this a DM room -> ring
779
779
/// - is this a group with more than one other member -> notify
780
- pub async fn send_call_notification_if_needed ( & self ) -> Result < ( ) , ClientError > {
781
- self . inner . send_call_notification_if_needed ( ) . await ?;
782
- Ok ( ( ) )
780
+ ///
781
+ /// Returns:
782
+ /// - `Ok(true)` if the event was successfully sent.
783
+ /// - `Ok(false)` if we didn't send it because it was unnecessary.
784
+ /// - `Err(_)` if sending the event failed.
785
+ pub async fn send_call_notification_if_needed ( & self ) -> Result < bool , ClientError > {
786
+ Ok ( self . inner . send_call_notification_if_needed ( ) . await ?)
783
787
}
784
788
785
789
/// Send a call notification event in the current room.
You can’t perform that action at this time.
0 commit comments