Skip to content
Snippets Groups Projects
Commit b549628f authored by Diego Sampaio's avatar Diego Sampaio
Browse files

Merge branch 'develop' of github.com:RocketChat/Rocket.Chat into develop

parents 2de3f521 e7387562
No related branches found
No related tags found
No related merge requests found
......@@ -10,8 +10,8 @@ RocketChat.callbacks.add('beforeSaveMessage', (msg) => {
const urlObj = URL.parse(item.url);
if (urlObj.query) {
const queryString = QueryString.parse(urlObj.query);
if (_.isString(queryString.j)) { // Jump-to query param
let jumpToMessage = RocketChat.models.Messages.findOneById(queryString.j);
if (_.isString(queryString.msg)) { // Jump-to query param
let jumpToMessage = RocketChat.models.Messages.findOneById(queryString.msg);
if (jumpToMessage) {
msg.attachments = msg.attachments || [];
msg.attachments.push({
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment