Skip to content

Conversation

brf153
Copy link

@brf153 brf153 commented Feb 24, 2025

Issue(s)

closes #26

Acceptance Criteria fulfillment

  • Added famous replies
  • Added proper error handling
  • Tested thoroughly

Proposed changes (including videos or screenshots)

Screencast.from.24-02-25.11.31.49.PM.IST.webm

Signed-off-by: brf153 <[email protected]>
@brf153 brf153 changed the title add famous replies [feat]: Add famous replies Feb 24, 2025
};
}

private getAssociations(userId: string): RocketChatAssociationRecord[] {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not use src/storage/ReplyStorage.ts ?

];
}

public async onInstall(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are we sure that this will run only once for each user ? we should run this once for each user who opens the app for the first time make sure we do it that way.
my feel this will run only for admin guy once the app is installed in the server research on this please.

): Promise<void> {
try {

const quickReplies: IReply[] = [
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please use method we already have for storing replies

body: 'Thank you for reaching out. I will get back to you shortly.',
id: `${context.user.id}-${(Date.now() - 5).toString(36)}`,
},
{
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

put this replies in some different file not here

@VipinDevelops
Copy link
Collaborator

@brf153 Let me know if you are not working on it now
I'll assign it to someone else then.

@brf153
Copy link
Author

brf153 commented Mar 19, 2025

@VipinDevelops Apologies for the delay. I recently joined a startup and haven't been able to find time for this. I believe it would be best to reassign the task to someone else, who can refer to my PR for further progress.

After doing some research, I realized that onInstall can be used, as it will set up the quick replies only once. However, instead of storing the quick replies with a specific admin ID in persistence, it would be better to use a common tag for the entire room. I believe this approach would be more effective.

@priyanshuharshbodhi1
Copy link

@VipinDevelops , Can I take it?

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feat]: Add famous quick replies

3 participants