Fix unread chat count when receiving a message with the chatroom open
This commit is contained in:
parent
1a9a524914
commit
225cb8e1a5
1 changed files with 1 additions and 0 deletions
|
@ -228,6 +228,7 @@ public class ChatFragment extends Fragment implements OnClickListener, LinphoneC
|
||||||
if (from.asStringUriOnly().equals(sipUri)) {
|
if (from.asStringUriOnly().equals(sipUri)) {
|
||||||
LinphoneService.instance().removeMessageNotification();
|
LinphoneService.instance().removeMessageNotification();
|
||||||
cr.markAsRead();
|
cr.markAsRead();
|
||||||
|
LinphoneActivity.instance().updateMissedChatCount();
|
||||||
adapter.addMessage(cr.getHistory(1)[0]);
|
adapter.addMessage(cr.getHistory(1)[0]);
|
||||||
|
|
||||||
String externalBodyUrl = message.getExternalBodyUrl();
|
String externalBodyUrl = message.getExternalBodyUrl();
|
||||||
|
|
Loading…
Reference in a new issue