Rocket.Chat.Kotlin.SDK
Rocket.Chat.Kotlin.SDK copied to clipboard
[NEW] Add support to the event ":userId:/message" subscription
Description
The SDK needs to add support for this event subscription over stream-notify-user
subscription:
:userId:/message
The call is basically:
let request = [
"msg": "sub",
"name": "stream-notify-user",
"params": ["\(user.identifier ?? "")/message", false]
]
The thing is, when getting messages over this event, we'll have to set to the message these two properties:
- private:
true
- user:
{"username": "rocket.cat", "_id": "rocket.cat"}
This is because the messages coming from this stream needs to be removed on every new session.
The messages that are coming from this subscription: private messages only related to that user; Examples:
- Commands replies;
- Rocket.Chat Apps replies;
any news on this issue? I have a conference bot whose messages won't show on the app
besides on android kotlin.sdk I can't find the private
property on the Message
model class.