Skip to content

Commit

Permalink
fix(client-common): ensure attachment_ended is called on delegate
Browse files Browse the repository at this point in the history
  • Loading branch information
colinmarc committed Nov 2, 2024
1 parent 9f69576 commit fd4d1c4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mm-client-common/src/attachment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,9 @@ impl AttachmentState {
pub(crate) fn handle_close(mut self, err: Option<ClientError>) {
if let Some(tx) = self.notify_detached.take() {
let _ = tx.send(());
} else if self.reattach_required {
}

if self.reattach_required {
self.reattach_required = false;
} else if let Some(err) = err {
self.delegate.error(err);
Expand Down

0 comments on commit fd4d1c4

Please sign in to comment.