iOS | Draft Message
Hello,
How can I save draft message for each conversation? I could not find any method.
I've found that Im able to retrieve draft message from conversation object, but I did not find how to set draft message.
-
Hello,
You just need to create a new DraftMessage object, define values you need and set it to the conversation.
For example:
let draftMessage = DraftMessage()
draftMessage.text = text
draftMessage.priority = messagePriority
draftMessage.mentionedParticipants = mentionedParticipants
conversation.draftMessage = draftMessage
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
3 Kommentare