feat: add IncomingCallAccepted.from_this_device

This commit is contained in:
WofWca
2026-03-10 22:27:46 +04:00
parent 01b2aa0f66
commit bf02785a36
6 changed files with 34 additions and 4 deletions

View File

@@ -266,6 +266,7 @@ impl Context {
self.emit_event(EventType::IncomingCallAccepted {
msg_id: call.msg.id,
chat_id: call.msg.chat_id,
from_this_device: true,
});
self.emit_msgs_changed(call.msg.chat_id, call_id);
Ok(())
@@ -432,6 +433,7 @@ impl Context {
self.emit_event(EventType::IncomingCallAccepted {
msg_id: call.msg.id,
chat_id: call.msg.chat_id,
from_this_device: false,
});
} else {
let accept_call_info = mime_message