removed unnecessary conditions when sending read marker
This commit is contained in:
parent
8a14f5ae48
commit
a7c206dc1b
1 changed files with 1 additions and 5 deletions
|
@ -366,11 +366,7 @@ public class ConversationActivity extends XmppActivity
|
||||||
|
|
||||||
public void sendReadMarkerIfNecessary(final Conversation conversation) {
|
public void sendReadMarkerIfNecessary(final Conversation conversation) {
|
||||||
if (!mActivityPaused && conversation != null) {
|
if (!mActivityPaused && conversation != null) {
|
||||||
if (!conversation.isRead()) {
|
|
||||||
xmppConnectionService.sendReadMarker(conversation);
|
xmppConnectionService.sendReadMarker(conversation);
|
||||||
} else {
|
|
||||||
xmppConnectionService.markRead(conversation);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue