caching fixes for stability and android #450

Merged
dan merged 3 commits from cache3.0 into trunk 2022-04-29 23:37:20 +00:00
Owner
  • also tweek logic for "new messages" bubble
- also tweek logic for "new messages" bubble
dan added 1 commit 2022-04-28 23:21:48 +00:00
Member
Drone Build Status: success https://build.openprivacy.ca/cwtch.im/cwtch-ui/733
sarah reviewed 2022-04-29 04:12:24 +00:00
@ -43,7 +43,6 @@ class ContactInfoState extends ChangeNotifier {
late DateTime _lastMessageTime;
late Map<String, GlobalKey<MessageRowState>> keys;
int _newMarkerMsgId = -1;
DateTime _newMarkerClearAt = DateTime.now();
Owner

what is clearing the new marker now?

what is clearing the new marker now?
Author
Owner

it's cleared on calls to .unselected() by either selectConversation in contactsView or _willPop() (the android back button in conversation)

it's cleared on calls to .unselected() by either selectConversation in contactsView or _willPop() (the android back button in conversation)
@ -116,0 +101,4 @@
// On android reconnect, if backend supplied message count > UI message count, add the differnce to the front of the index
void addFrontIndexGap(int count) {
this._indexUnsynced = count;
// TODO: needed? maybe not? since after totalmessatges and profile will notify
Owner

delete - on the assumption that we don't need to rerender when indexUnsynced is changed.

delete - on the assumption that we don't need to rerender when indexUnsynced is changed.
dan marked this conversation as resolved
dan force-pushed cache3.0 from 3e05c9c7d7 to 0647a2d98d 2022-04-29 04:28:19 +00:00 Compare
sarah approved these changes 2022-04-29 23:07:49 +00:00
dan force-pushed cache3.0 from 10dfdf6ad7 to ffa51e83a1 2022-04-29 23:07:58 +00:00 Compare
Member
Drone Build Status: success https://build.openprivacy.ca/cwtch.im/cwtch-ui/737
Member
Drone Build Status: success https://build.openprivacy.ca/cwtch.im/cwtch-ui/738
Member
Drone Build Status: success https://build.openprivacy.ca/cwtch.im/cwtch-ui/739
dan merged commit af5fb678fc into trunk 2022-04-29 23:37:20 +00:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cwtch.im/cwtch-ui#450
No description provided.