mirror of
https://github.com/chatmail/core.git
synced 2026-04-19 14:36:29 +03:00
api!: remove APIs for video chat invitations
This commit is contained in:
@@ -732,12 +732,10 @@ impl MimeMessage {
|
||||
.map(|s| s.to_string());
|
||||
if let Some(part) = self.parts.first_mut() {
|
||||
if let Some(room) = room {
|
||||
if content == "videochat-invitation" {
|
||||
part.typ = Viewtype::VideochatInvitation;
|
||||
} else if content == "call" {
|
||||
part.typ = Viewtype::Call
|
||||
if content == "call" {
|
||||
part.typ = Viewtype::Call;
|
||||
part.param.set(Param::WebrtcRoom, room);
|
||||
}
|
||||
part.param.set(Param::WebrtcRoom, room);
|
||||
} else if let Some(accepted) = accepted {
|
||||
part.param.set(Param::WebrtcAccepted, accepted);
|
||||
}
|
||||
@@ -765,10 +763,7 @@ impl MimeMessage {
|
||||
| Viewtype::Vcard
|
||||
| Viewtype::File
|
||||
| Viewtype::Webxdc => true,
|
||||
Viewtype::Unknown
|
||||
| Viewtype::Text
|
||||
| Viewtype::VideochatInvitation
|
||||
| Viewtype::Call => false,
|
||||
Viewtype::Unknown | Viewtype::Text | Viewtype::Call => false,
|
||||
})
|
||||
{
|
||||
let mut parts = std::mem::take(&mut self.parts);
|
||||
|
||||
Reference in New Issue
Block a user