Skip to content

Commit

Permalink
Update saveLastVisitorMessageTs.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
KevLehman authored Jul 10, 2023
1 parent 6d775af commit a5f3db8
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { isOmnichannelRoom } from '@rocket.chat/core-typings';
import { LivechatRooms } from '@rocket.chat/models';

import { callbacks } from '../../../../lib/callbacks';
import { callbackLogger } from '../lib/logger';

callbacks.add(
'afterSaveMessage',
Expand All @@ -15,11 +14,6 @@ callbacks.add(
}
if (message.token) {
await LivechatRooms.setVisitorLastMessageTimestampByRoomId(room._id, message.ts);
callbackLogger.debug({
msg: 'Saved last visitor message timestamp',
rid: room._id,
msgId: message._id,
});
}
return message;
},
Expand Down

0 comments on commit a5f3db8

Please sign in to comment.