Top

iOS | Draft Message

Comments

3 comments

  • Le-Trong-Nghia HUYNH

    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

    0
    Comment actions Permalink
  • Patrik Spisak

    Thanks, I thought that draft is also saved on server, did not expect that is only assigned as object and pass back to conversation object.

    0
    Comment actions Permalink
  • Le-Trong-Nghia HUYNH

    The draft message is only local and is not shared by clients through server. Also, the value is only saved in memory so if the user terminates the app and relaunches it, the draft message is reset.

    0
    Comment actions Permalink

Please sign in to leave a comment.

Still can't find what you need?

  • Contact Us

    Do you have any question about Rainbow? Leave us a message to get more information.

    Contact
  • Ask the Community

    Do you need help? Ask your questions to the Community and get answers from other Rainbow users.

    Post message