diff --git a/app/lib/methods/subscriptions/room.js b/app/lib/methods/subscriptions/room.js index d2f4bc55..06713647 100644 --- a/app/lib/methods/subscriptions/room.js +++ b/app/lib/methods/subscriptions/room.js @@ -128,7 +128,7 @@ export default class RoomSubscription { }); read = debounce((lastOpen) => { - this.readMessages(this.rid, lastOpen); + RocketChat.readMessages(this.rid, lastOpen); }, 300); handleMessageReceived = protectedFunction((ddpMessage) => {