RocketChat / RocketChat/Rocket.Chat

feat(apps) : Delete notification messages on based on some event

Open
#35,801 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
46.1k
Forks
13.9k
Avg merge
3d 3h
Merged PRs (30d)
130

Description

Background
In app engine, notification messages are messages which are only visible to the user. For example in github22 app when we use slash command /github help the githubbot app sends a message with all the things an user can do with the app.
Image

Problem
Youtube Link
I wanted to implement this

  • But,as you can see after pressing the button the notification message in not dissappearing. I am stuck here. I am trying to use this method, but getmessages doest consider bot messages as messages.

Solution
Create a method to delete notification messages based on triggers

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Apps-Engine IModifyDeleter and IRoomRead#getMessages documentation, then reproduce the github22 /github help flow and its button interaction from the linked video. Determine how notification messages are identified and which triggers should remove them; done means a defined deletion method handles the requested event without relying on getMessages to find bot messages.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.