mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-06 21:33:08 +00:00
Add Transfer Feature Test
This commit is contained in:
parent
e7ebd60998
commit
0ed5d8e371
1 changed files with 19 additions and 0 deletions
|
|
@ -1295,4 +1295,23 @@ import AVFoundation
|
|||
self.newMediaCount = sequenceCount
|
||||
}
|
||||
}
|
||||
|
||||
func handlePendingTransferIfAny() {
|
||||
if pendingForwardMessage {
|
||||
let message = pendingForwardMessage
|
||||
pendingForwardMessage = nil
|
||||
let d = UIConfirmationDialog.show(
|
||||
withMessage: NSLocalizedString("Transfer this message to this conversation ?", comment: ""),
|
||||
cancelMessage: nil,
|
||||
confirmMessage: NSLocalizedString("TRANSFER", comment: ""),
|
||||
onCancelClick: {
|
||||
},
|
||||
onConfirmationClick: {
|
||||
linphone_chat_message_send(linphone_chat_room_create_forward_message(chatRoom, message))
|
||||
|
||||
})
|
||||
d?.forwardImage.hidden = false
|
||||
d?.setSpecialColor()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue