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] Slackbridge: send attachment notifications #10269

Merged
merged 40 commits into from Aug 21, 2018

Conversation

Hudell
Copy link
Contributor

@Hudell Hudell commented Mar 29, 2018

@RocketChat/core

Closes an item on #8012 , merging PR #6309

Original Description:

Until we have full bi-directional file uploading supported via the SlackBridge, lets at least post a message so that one knows it occurred.
There have been many conversations (rocket <--> slack) where the other party didn't realize a screen shot/txt file had been uploaded and then the follow up messages had no context. At lest now they will see a message that a file was uploaded and then can take action (switch group chat tools) to view it.

@rodrigok rodrigok modified the milestones: 0.64.0, 0.66.0 May 22, 2018
@rodrigok rodrigok added this to Desireable in June/2018 via automation May 22, 2018
@rodrigok
Copy link
Member

@Hudell can you fix the conflict?

@rodrigok rodrigok moved this from Desireable to Backlog in June/2018 May 22, 2018
@Hudell Hudell requested a review from sampaiodiego June 19, 2018 21:57
@@ -68,6 +68,18 @@ class SlackBridge {
logger.class.debug(`Setting: ${ key }`, value);
});

//Import messages from Slack with an alias; %s is replaced by the username of the user. If empty, no alias will be used.
Copy link
Member

Choose a reason for hiding this comment

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

Does this makes part of this PR?


//Hack to notify that a file was attempted to be uploaded
delete slackMessage.subtype;
slackMessage.text = `Uploaded a file: ${ slackMessage.file.permalink }`;
Copy link
Member

Choose a reason for hiding this comment

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

Could we post this as an attachment to have the preview and remove that, not translated, text?

file_name = Meteor.absoluteUrl(title_link);
}

const message = `Uploaded a file: ${ file_name }`;
Copy link
Member

Choose a reason for hiding this comment

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

Any idea of how to not have that text? Have a fixed text in english seems wrong.

@Hudell Hudell removed this from the 0.66.0 milestone Jul 10, 2018
@Hudell Hudell removed this from Review/QA in June/2018 Jul 10, 2018
@rodrigok rodrigok added this to the 0.68.0 milestone Jul 16, 2018
@theorenck theorenck modified the milestones: 0.68.0, Short-term Jul 31, 2018
@Hudell Hudell added this to In progress in August/2018 via automation Aug 20, 2018
@Hudell Hudell modified the milestones: Short-term, 0.69.0 Aug 20, 2018
@Hudell Hudell moved this from In progress to Review/QA in August/2018 Aug 20, 2018
August/2018 automation moved this from Review/QA to Ready to merge Aug 20, 2018
rodrigok
rodrigok previously approved these changes Aug 20, 2018
@sampaiodiego sampaiodiego merged commit 58126ef into RocketChat:develop Aug 21, 2018
August/2018 automation moved this from Ready to merge to Done Aug 21, 2018
@sampaiodiego sampaiodiego mentioned this pull request Aug 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
August/2018
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

7 participants