Rocket.Chat.Kotlin.SDK icon indicating copy to clipboard operation
Rocket.Chat.Kotlin.SDK copied to clipboard

[NEW] Add support to the event ":userId:/message" subscription

Open rafaelks opened this issue 6 years ago • 2 comments

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:

  1. Commands replies;
  2. Rocket.Chat Apps replies;

rafaelks avatar Apr 10 '18 00:04 rafaelks

any news on this issue? I have a conference bot whose messages won't show on the app

aenonGit avatar Feb 20 '19 16:02 aenonGit

besides on android kotlin.sdk I can't find the private property on the Message model class.

aenonGit avatar Feb 21 '19 11:02 aenonGit