Conversation.sendMessage: Don't set unreadCount to zero

This is no longer guaranteed to be true. If you're scrolled up in a
conversation, you may not have read all messages. Setting the
unreadCount to zero will prevent the user from marking any of their
existing messages as unread until something else happens, like receiving
a read receipt or new message.

FREEBIE
This commit is contained in:
Scott Nonnenberg 2017-06-07 08:55:18 -07:00
parent 42608849bd
commit 6bfeb7ab14

View file

@ -165,7 +165,6 @@
message.save();
this.save({
unreadCount : 0,
active_at : now,
timestamp : now,
lastMessage : message.getNotificationText()