mirror of
https://github.com/chatmail/core.git
synced 2026-04-26 01:46:34 +03:00
feat: allow clients to specify whether a call has video initially or not (#7740)
This commit is contained in:
committed by
GitHub
parent
d6bce56d18
commit
63bf4c4f33
@@ -1840,6 +1840,12 @@ impl MimeFactory {
|
||||
mail_builder::headers::raw::Raw::new(b_encode(answer)).into(),
|
||||
));
|
||||
}
|
||||
if let Some(has_video) = msg.param.get(Param::WebrtcHasVideoInitially) {
|
||||
headers.push((
|
||||
"Chat-Webrtc-Has-Video-Initially",
|
||||
mail_builder::headers::raw::Raw::new(b_encode(has_video)).into(),
|
||||
))
|
||||
}
|
||||
|
||||
if msg.viewtype == Viewtype::Voice
|
||||
|| msg.viewtype == Viewtype::Audio
|
||||
|
||||
Reference in New Issue
Block a user