Fix unread chat count when receiving a message with the chatroom open

This commit is contained in:
Sylvain Berfini 2016-08-09 15:05:57 +02:00
parent 1a9a524914
commit 225cb8e1a5

View file

@ -228,6 +228,7 @@ public class ChatFragment extends Fragment implements OnClickListener, LinphoneC
if (from.asStringUriOnly().equals(sipUri)) {
LinphoneService.instance().removeMessageNotification();
cr.markAsRead();
LinphoneActivity.instance().updateMissedChatCount();
adapter.addMessage(cr.getHistory(1)[0]);
String externalBodyUrl = message.getExternalBodyUrl();