Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rafaelks opened this issue Apr 10, 2018 · 2 comments
Open

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

rafaelks opened this issue Apr 10, 2018 · 2 comments

Comments

@rafaelks
Copy link
Contributor

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;
@aenonGit
Copy link

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

@aenonGit
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants