Skip to content

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
Copy link
Member

@Hudell can you fix the conflict?

@Hudell Hudell self-assigned this Jun 5, 2018
@Hudell Hudell requested a review from sampaiodiego June 19, 2018 21:57
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
@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 modified the milestones: Short-term, 0.69.0 Aug 20, 2018
rodrigok
rodrigok previously approved these changes Aug 20, 2018
@sampaiodiego sampaiodiego merged commit 58126ef into RocketChat:develop 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

None yet

Development

Successfully merging this pull request may close these issues.

6 participants