File tree Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -111,6 +111,7 @@ impl Context {
111
111
match mime_message. is_system_message {
112
112
SystemMessage :: IncomingCall => {
113
113
let call = self . load_call_by_root_id ( call_or_child_id) . await ?;
114
+ self . emit_msgs_changed ( call. msg . chat_id , call_or_child_id) ;
114
115
if call. incoming {
115
116
self . emit_event ( EventType :: IncomingCall {
116
117
msg_id : call. msg . id ,
@@ -119,6 +120,7 @@ impl Context {
119
120
}
120
121
SystemMessage :: CallAccepted => {
121
122
let call = self . load_call_by_child_id ( call_or_child_id) . await ?;
123
+ self . emit_msgs_changed ( call. msg . chat_id , call_or_child_id) ;
122
124
if call. incoming {
123
125
self . emit_event ( EventType :: IncomingCallAccepted {
124
126
msg_id : call. msg . id ,
@@ -131,6 +133,7 @@ impl Context {
131
133
}
132
134
SystemMessage :: CallEnded => {
133
135
let call = self . load_call_by_child_id ( call_or_child_id) . await ?;
136
+ self . emit_msgs_changed ( call. msg . chat_id , call_or_child_id) ;
134
137
self . emit_event ( EventType :: CallEnded {
135
138
msg_id : call. msg . id ,
136
139
} ) ;
Original file line number Diff line number Diff line change @@ -626,7 +626,12 @@ pub(crate) async fn receive_imf_inner(
626
626
}
627
627
}
628
628
629
- if received_msg. hidden {
629
+ if mime_parser. is_system_message == SystemMessage :: IncomingCall
630
+ || mime_parser. is_system_message == SystemMessage :: CallAccepted
631
+ || mime_parser. is_system_message == SystemMessage :: CallEnded
632
+ {
633
+ context. handle_call_msg ( & mime_parser, insert_msg_id) . await ?;
634
+ } else if received_msg. hidden {
630
635
// No need to emit an event about the changed message
631
636
} else if let Some ( replace_chat_id) = replace_chat_id {
632
637
context. emit_msgs_changed_without_msg_id ( replace_chat_id) ;
@@ -638,13 +643,6 @@ pub(crate) async fn receive_imf_inner(
638
643
}
639
644
context. new_msgs_notify . notify_one ( ) ;
640
645
641
- if mime_parser. is_system_message == SystemMessage :: IncomingCall
642
- || mime_parser. is_system_message == SystemMessage :: CallAccepted
643
- || mime_parser. is_system_message == SystemMessage :: CallEnded
644
- {
645
- context. handle_call_msg ( & mime_parser, insert_msg_id) . await ?;
646
- }
647
-
648
646
mime_parser
649
647
. handle_reports ( context, from_id, & mime_parser. parts )
650
648
. await ;
You can’t perform that action at this time.
0 commit comments