Skip to content
Closed
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions app/lib/methods/subscriptions/room.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ export default class RoomSubscription {
handleConnection = () => {
reduxStore.dispatch(clearUserTyping());
RocketChat.loadMissedMessages({ rid: this.rid }).catch(e => console.log(e));
Comment thread
reinaldonetof marked this conversation as resolved.
Outdated
RocketChat.subscriptionRead(this.rid);
Comment thread
reinaldonetof marked this conversation as resolved.
Outdated
};

handleNotifyRoomReceived = protectedFunction(ddpMessage => {
Expand Down
3 changes: 3 additions & 0 deletions app/lib/rocketchat.js
Original file line number Diff line number Diff line change
Expand Up @@ -1057,6 +1057,9 @@ const RocketChat = {
}
return this.post('subscriptions.read', { rid: roomId });
},
subscriptionRead(roomId) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We don't need this. We should call RoomServices.readMessages

return this.post('subscriptions.read', { rid: roomId });
},
async getRoomMembers({ rid, allUsers, roomType, type, filter, skip = 0, limit = 10 }) {
const serverVersion = reduxStore.getState().server.version;
if (compareServerVersion(serverVersion, '3.16.0', methods.greaterThanOrEqualTo)) {
Expand Down