mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-03 20:46:28 +00:00
Read_only_native_address_book condition for ChatConversationSwift (Config RC)
This commit is contained in:
parent
d41f2c21e3
commit
96fa6df872
2 changed files with 4 additions and 4 deletions
|
|
@ -362,7 +362,7 @@ class ChatConversationTableViewSwift: UIViewController, UICollectionViewDataSour
|
|||
|
||||
let isOneToOneChat = ChatConversationViewModel.sharedModel.chatRoom!.hasCapability(mask: Int(LinphoneChatRoomCapabilitiesOneToOne.rawValue))
|
||||
if (!message.isOutgoing && FastAddressBook.getContactWith(message.fromAddress?.getCobject) == nil
|
||||
&& !isOneToOneChat ) {
|
||||
&& !isOneToOneChat && !ConfigManager.instance().lpConfigBoolForKey(key: "read_only_native_address_book")) {
|
||||
menu!.dataSource.append(VoipTexts.bubble_chat_dropDown_add_to_contact)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -451,10 +451,10 @@ class ChatConversationViewSwift: BackActionsNavigationView, PHPickerViewControll
|
|||
let addr = (firstParticipant != nil) ? linphone_participant_get_address(firstParticipant?.getCobject) : linphone_chat_room_get_peer_address(cChatRoom)
|
||||
|
||||
contact = FastAddressBook.getContactWith(addr)
|
||||
|
||||
if (contact == nil) {
|
||||
|
||||
if (contact == nil && !ConfigManager.instance().lpConfigBoolForKey(key: "read_only_native_address_book")) {
|
||||
menu.dataSource.append(VoipTexts.dropdown_menu_chat_conversation_add_to_contact)
|
||||
} else {
|
||||
} else if (contact != nil) {
|
||||
menu.dataSource.append(VoipTexts.dropdown_menu_chat_conversation_go_to_contact)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue