Skip to content
This repository has been archived by the owner on Jun 7, 2020. It is now read-only.

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

Closed
rafaelks opened this issue Apr 10, 2018 · 0 comments
Closed

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

rafaelks opened this issue Apr 10, 2018 · 0 comments

Comments

@rafaelks
Copy link
Contributor

Description

The app 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 rafaelks modified the milestones: 2.2.0, 2.2.1 Apr 10, 2018
@rafaelks rafaelks modified the milestones: 2.3.0, 3.0.0 Apr 27, 2018
@rafaelks rafaelks added this to Desirable in Cycle 05: 05/05 ~ 05/27 via automation May 1, 2018
@rafaelks rafaelks moved this from Desirable to To do in Cycle 05: 05/05 ~ 05/27 May 3, 2018
@rafaelks rafaelks modified the milestones: 3.0.0, 3.0.2, 3.1.0 Jul 17, 2018
@rafaelks rafaelks added this to Desirable in Cycle 08: 08/05 ~ 08/27 via automation Jul 23, 2018
@rafaelks rafaelks moved this from Desirable to To-do in Cycle 08: 08/05 ~ 08/27 Jul 25, 2018
@rafaelks rafaelks self-assigned this Jul 28, 2018
@rafaelks rafaelks moved this from To-do to In Progress in Cycle 08: 08/05 ~ 08/27 Jul 30, 2018
@rafaelks rafaelks removed their assignment Aug 8, 2018
@rafaelks rafaelks moved this from In Progress to Desirable in Cycle 08: 08/05 ~ 08/27 Aug 29, 2018
@rafaelks rafaelks modified the milestones: 3.1.0, 3.2.0 Aug 31, 2018
@rafaelks rafaelks added this to To-do in Cycle 09: 09/05 ~ 09/27 via automation Sep 4, 2018
@rafaelks rafaelks self-assigned this Sep 10, 2018
@rafaelks rafaelks moved this from To-do to In Progress in Cycle 09: 09/05 ~ 09/27 Sep 10, 2018
Cycle 09: 09/05 ~ 09/27 automation moved this from In Progress to Done Sep 14, 2018
@rafaelks rafaelks modified the milestones: 3.2.0, 3.1.1 Sep 21, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
No open projects
Development

No branches or pull requests

1 participant