Skip to content

Commit

Permalink
chatblr.get_count uses servblr.get_counts
Browse files Browse the repository at this point in the history
  • Loading branch information
y1n0 committed Aug 17, 2018
1 parent f4647a2 commit a366b3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion servblr/chatblr.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def participant_id(self):

def get_count(self):
"""return the number of new unread messages in the chat"""
counts = self.servblr._counts()['unread_messages']
counts = self.servblr.get_counts()
n = counts.get(str(self.chat_id), 0)
self.unread = n
return n
Expand Down

0 comments on commit a366b3c

Please sign in to comment.