Adds feature to all jump-to-message actions

pull/7561/head
Gabriel Delavald 9 years ago
parent d69230965c
commit 4a8ea9ce1f
  1. 3
      packages/rocketchat-mentions-flextab/client/actionButton.js
  2. 3
      packages/rocketchat-message-pin/client/actionButton.js
  3. 3
      packages/rocketchat-message-star/client/actionButton.js

@ -7,6 +7,9 @@ Meteor.startup(function() {
action() {
const message = this._arguments[1];
RocketChat.MessageAction.hideDropDown();
if (window.matchMedia('(max-width: 500px)').matches) {
Template.instance().tabBar.close();
}
return RoomHistoryManager.getSurroundingMessages(message, 50);
},
validation(message) {

@ -62,6 +62,9 @@ Meteor.startup(function() {
action() {
const message = this._arguments[1];
RocketChat.MessageAction.hideDropDown();
if (window.matchMedia('(max-width: 500px)').matches) {
Template.instance().tabBar.close();
}
return RoomHistoryManager.getSurroundingMessages(message, 50);
},
validation(message) {

@ -54,6 +54,9 @@ Meteor.startup(function() {
action() {
const message = this._arguments[1];
RocketChat.MessageAction.hideDropDown();
if (window.matchMedia('(max-width: 500px)').matches) {
Template.instance().tabBar.close();
}
return RoomHistoryManager.getSurroundingMessages(message, 50);
},
validation(message) {

Loading…
Cancel
Save