Skip to content
Snippets Groups Projects
Commit 39399fc2 authored by Tainan Felipe's avatar Tainan Felipe
Browse files

revert unread counter for count by messages

parent e59c8df7
No related branches found
No related tags found
No related merge requests found
......@@ -3,7 +3,6 @@ import { Tracker } from 'meteor/tracker';
import Storage from '/imports/ui/services/storage/session';
import Auth from '/imports/ui/services/auth';
import Chats from '/imports/api/chat';
import ChatService from '/imports/ui/components/chat/service';
const CHAT_CONFIG = Meteor.settings.public.chat;
const STORAGE_KEY = CHAT_CONFIG.storage_key;
......@@ -52,8 +51,7 @@ class UnreadMessagesTracker {
count(chatID) {
const messages = this.getUnreadMessages(chatID);
const reducedAndMappedMessages = ChatService.reduceAndMapMessages(messages);
return reducedAndMappedMessages.length;
return messages.length;
}
}
......
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