Skip to content

Commit

Permalink
Update strings to say group/channel instead of muc
Browse files Browse the repository at this point in the history
  • Loading branch information
tmolitor-stud-tu committed Oct 8, 2023
1 parent e8bbb2f commit 311c58d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Monal/Classes/AddContactMenu.swift
Original file line number Diff line number Diff line change
Expand Up @@ -105,15 +105,15 @@ struct AddContactMenu: View {
MLXMPPManager.sharedInstance().add(contact, withPreauthToken:preauthToken)
successAlert(title: Text("Permission Requested"), message: Text("The new contact will be added to your contacts list when the person you've added has approved your request."))
} else if(type == "muc") {
showLoadingOverlay(overlay, headline: NSLocalizedString("Adding MUC...", comment: ""))
showLoadingOverlay(overlay, headline: NSLocalizedString("Adding Group/Channel...", comment: ""))
account.mucProcessor.addUIHandler({data in
let success : Bool = (data as! NSDictionary)["success"] as! Bool;
hideLoadingOverlay(overlay)
if(success) {
self.newContact = MLContact.createContact(fromJid: jid, andAccountNo: account.accountNo)
successAlert(title: Text("Success!"), message: Text(String.localizedStringWithFormat("Successfully joined MUC %@!", jid)))
successAlert(title: Text("Success!"), message: Text(String.localizedStringWithFormat("Successfully joined group/channel %@!", jid)))
} else {
errorAlert(title: Text("Error entering MUC!"))
errorAlert(title: Text("Error entering group/channel!"))
}
}, forMuc: jid)
account.joinMuc(jid)
Expand Down

0 comments on commit 311c58d

Please sign in to comment.