remove old hack to update seen-recently indicator (#2932)

This commit is contained in:
Asiel Díaz Benítez
2024-01-21 19:02:21 -05:00
committed by GitHub
parent 39f441892e
commit 208e5f2bb1
@@ -249,8 +249,6 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity
if (!isMultiUser()) {
eventCenter.addObserver(DcContext.DC_EVENT_INCOMING_MSG, this);
eventCenter.addObserver(DcContext.DC_EVENT_MSG_READ, this);
// handle DC_EVENT_MSG_DELIVERED to hide the seen-recently indicator if needed:
eventCenter.addObserver(DcContext.DC_EVENT_MSG_DELIVERED, this);
}
handleRelaying();
@@ -1539,8 +1537,7 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity
setComposePanelVisibility();
initializeContactRequest();
} else if ((eventId == DcContext.DC_EVENT_INCOMING_MSG
|| eventId == DcContext.DC_EVENT_MSG_READ
|| eventId == DcContext.DC_EVENT_MSG_DELIVERED)
|| eventId == DcContext.DC_EVENT_MSG_READ)
&& event.getData1Int() == chatId) {
DcContact contact = recipient.getDcContact();
titleView.setSeenRecently(contact!=null? dcContext.getContact(contact.getId()).wasSeenRecently() : false);