Fix crash when calling contact from Conversations (#1259)

fixes #1227
This commit is contained in:
rim 2022-08-22 21:39:34 +03:00 committed by GitHub
parent 117f193812
commit b8e84c8326
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -45,7 +45,10 @@ public class Dino.PeerState : Object {
this.stream_interactor = stream_interactor; this.stream_interactor = stream_interactor;
this.calls = stream_interactor.get_module(Calls.IDENTITY); this.calls = stream_interactor.get_module(Calls.IDENTITY);
var session_info_type = stream_interactor.module_manager.get_module(call.account, Xep.JingleRtp.Module.IDENTITY).session_info_type; Xep.JingleRtp.Module jinglertp_module = stream_interactor.module_manager.get_module(call.account, Xep.JingleRtp.Module.IDENTITY);
if (jinglertp_module == null) return;
var session_info_type = jinglertp_module.session_info_type;
session_info_type.mute_update_received.connect((session,mute, name) => { session_info_type.mute_update_received.connect((session,mute, name) => {
if (this.sid != session.sid) return; if (this.sid != session.sid) return;