Skip to content

Commit

Permalink
Fix compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
tmolitor-stud-tu committed Feb 10, 2025
1 parent b78a732 commit 5718be9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Monal/Classes/ChatView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ struct ChatView: View {
let activeChats = (UIApplication.shared.delegate as! MonalAppDelegate).activeChats!
let voipProcessor = (UIApplication.shared.delegate as! MonalAppDelegate).voipProcessor!
Button {
if let activeCall = voipProcessor.getActiveCall(with:contact.obj) {
if voipProcessor.getActiveCall(with:contact.obj) != nil {
if !DataLayer.sharedInstance().checkCap("urn:xmpp:jingle-message:0", forUser:contact.contactJid, onAccountID:contact.accountID) {
confirmationPrompt = ConfirmationPrompt(
title: Text("Missing Call Support"),
Expand All @@ -293,7 +293,7 @@ struct ChatView: View {
activeChats.call(contact.obj, withUIKitSender:nil)
}
} label: {
if let activeCall = voipProcessor.getActiveCall(with:contact.obj) {
if voipProcessor.getActiveCall(with:contact.obj) != nil {
Image(systemName: "phone.connection.fill")
} else {
Image(systemName: "phone.fill")
Expand Down

0 comments on commit 5718be9

Please sign in to comment.