differ between webrtc-instance-pattern and webrtc-rooms generated from that

This commit is contained in:
B. Petersen
2020-07-23 11:52:02 +02:00
parent 74fbd4fd16
commit 04c90e2d87
6 changed files with 10 additions and 10 deletions

View File

@@ -655,7 +655,7 @@ impl Message {
pub fn get_videochat_url(&self) -> Option<String> {
if self.viewtype == Viewtype::VideochatInvitation {
if let Some(instance) = self.param.get(Param::WebrtcInstance) {
if let Some(instance) = self.param.get(Param::WebrtcRoom) {
return Some(Message::parse_webrtc_instance(instance).1);
}
}
@@ -664,7 +664,7 @@ impl Message {
pub fn get_videochat_type(&self) -> Option<VideochatType> {
if self.viewtype == Viewtype::VideochatInvitation {
if let Some(instance) = self.param.get(Param::WebrtcInstance) {
if let Some(instance) = self.param.get(Param::WebrtcRoom) {
return Some(Message::parse_webrtc_instance(instance).0);
}
}