addMessageFromTo

open fun addMessageFromTo(message: Message, from: User?, to: User?): Message

Add a message with explicit author and recipient. Use this for multi-party chats where both sender and receiver need to be specified.

Return

the newly added message

Parameters

message

the message to add

from

the author of this message (who sent it)

to

the recipient of this message (who should receive it)