mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
remove old hack to update seen-recently indicator (#2932)
This commit is contained in:
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);
|
||||
|
||||
Reference in New Issue
Block a user