famedly / matrix-dart-sdk

Matrix SDK written in pure Dart.
GNU Affero General Public License v3.0
62 stars 33 forks source link

feat: keep timeline history for archive rooms in memory - [merged] #1380

Closed famedly-bot closed 1 year ago

famedly-bot commented 2 years ago

In GitLab by @h.carnot on Apr 8, 2022, 11:54

Merges henri/fix-timeline-history -> main

Description

Fixes #275 #311

For archived rooms, we don't want to store the events in the database. For this, we store the sync response containing all the timeline for the archived rooms in memory and ask explicitly the sync handler to not update the database.

TODO

Checklist

famedly-bot commented 2 years ago

In GitLab by @h.carnot on Jun 27, 2022, 17:40

added 1 commit

Compare with previous version

famedly-bot commented 2 years ago

In GitLab by @h.carnot on Jun 27, 2022, 17:44

Commented on .gitlab-ci.yml line 42

needed because https://gitlab.com/famedly/company/frontend/flutter-dockerimages/-/issues/6

famedly-bot commented 2 years ago

In GitLab by @h.carnot on Jun 27, 2022, 17:47

added 1 commit

Compare with previous version

famedly-bot commented 2 years ago

In GitLab by @nico-famedly on Jun 28, 2022, 13:07

Commented on .gitlab-ci.yml line 42

Should be fixed by https://gitlab.com/famedly/company/frontend/famedlysdk/-/merge_requests/1063

famedly-bot commented 2 years ago

In GitLab by @h.carnot on Jun 28, 2022, 13:53

added 4 commits

Compare with previous version

famedly-bot commented 2 years ago

In GitLab by @h.carnot on Jun 28, 2022, 14:11

Commented on .gitlab-ci.yml line 42

yep, working, thanks!

famedly-bot commented 2 years ago

In GitLab by @krille-chan on Jul 1, 2022, 09:15

Commented on lib/src/room.dart line 1279

  bool get isArchived => membership == Membership.leave;
famedly-bot commented 2 years ago

In GitLab by @krille-chan on Jul 1, 2022, 09:16

Commented on lib/src/room.dart line 1279

In one of my favorite clean code books, they recommend to try to start every boolean variable name with "is..."

famedly-bot commented 2 years ago

In GitLab by @h.carnot on Jul 8, 2022, 17:19

Commented on lib/src/room.dart line 1279

changed this line in version 24 of the diff

famedly-bot commented 2 years ago

In GitLab by @h.carnot on Jul 8, 2022, 17:19

added 1 commit

Compare with previous version

famedly-bot commented 2 years ago

In GitLab by @nico-famedly on Jul 13, 2022, 02:11

resolved all threads

famedly-bot commented 2 years ago

In GitLab by @nico-famedly on Jul 13, 2022, 02:12

Commented on test/room_archived_test.dart line 55

Flaky, please avoid sleeps in tests.

famedly-bot commented 2 years ago

In GitLab by @nico-famedly on Jul 13, 2022, 02:13

resolved all threads

famedly-bot commented 2 years ago

In GitLab by @nico-famedly on Jul 13, 2022, 02:13

Commented on test/room_archived_test.dart line 55

created #311 to continue this discussion

famedly-bot commented 2 years ago

In GitLab by @nico-famedly on Jul 13, 2022, 02:14

approved this merge request

famedly-bot commented 2 years ago

In GitLab by @nico-famedly on Jul 13, 2022, 02:15

Dammit, of course this conflicts now. Can you fix those and maybe #311 as well?

famedly-bot commented 2 years ago

In GitLab by @h.carnot on Jul 13, 2022, 12:39

added 40 commits

Compare with previous version

famedly-bot commented 2 years ago

In GitLab by @h.carnot on Jul 13, 2022, 12:43

added 1 commit

Compare with previous version

famedly-bot commented 2 years ago

In GitLab by @h.carnot on Jul 13, 2022, 15:37

Commented on lib/src/client.dart line 1705

changed this line in version 27 of the diff

famedly-bot commented 2 years ago

In GitLab by @h.carnot on Jul 13, 2022, 15:37

Commented on test/room_archived_test.dart line 55

changed this line in version 27 of the diff

famedly-bot commented 2 years ago

In GitLab by @h.carnot on Jul 13, 2022, 15:37

added 1 commit

Compare with previous version

famedly-bot commented 2 years ago

In GitLab by @h.carnot on Jul 13, 2022, 15:39

ok let’s see if it works now. And also, fixed #311

famedly-bot commented 2 years ago

In GitLab by @nico-famedly on Jul 13, 2022, 15:41

approved this merge request

famedly-bot commented 2 years ago

In GitLab by @nico-famedly on Jul 13, 2022, 15:42

unapproved this merge request

famedly-bot commented 2 years ago

In GitLab by @nico-famedly on Jul 13, 2022, 15:43

Commented on test/room_archived_test.dart line 136

Can you instead use the tearDown and setUp functions for each test so that they are not interdependent?

famedly-bot commented 2 years ago

In GitLab by @h.carnot on Jul 13, 2022, 15:55

added 1 commit

Compare with previous version

famedly-bot commented 2 years ago

In GitLab by @h.carnot on Jul 13, 2022, 15:58

added 1 commit

Compare with previous version

famedly-bot commented 2 years ago

In GitLab by @h.carnot on Jul 13, 2022, 15:58

Commented on test/room_archived_test.dart line 136

done :)

famedly-bot commented 2 years ago

In GitLab by @h.carnot on Jul 13, 2022, 16:54

added 1 commit

Compare with previous version

famedly-bot commented 2 years ago

In GitLab by @h.carnot on Jul 13, 2022, 16:55

So I tested in the famedly app, it’s working great. Fixed a encryption issue.

famedly-bot commented 2 years ago

In GitLab by @nico-famedly on Jul 21, 2022, 15:46

approved this merge request

famedly-bot commented 2 years ago

In GitLab by @nico-famedly on Jul 21, 2022, 15:49

added 9 commits

Compare with previous version

famedly-bot commented 2 years ago

In GitLab by @nico-famedly on Jul 21, 2022, 15:50

approved this merge request

famedly-bot commented 2 years ago

In GitLab by @nico-famedly on Jul 21, 2022, 15:51

enabled automatic add to merge train when the pipeline for d9811f569a1913024d8e8046749e98ece01f1ed7 succeeds

famedly-bot commented 2 years ago

In GitLab by @nico-famedly on Jul 21, 2022, 15:53

added this merge request to the merge train at position 3

famedly-bot commented 2 years ago

In GitLab by @nico-famedly on Jul 21, 2022, 16:00

removed this merge request from the merge train because pipeline did not succeed

famedly-bot commented 2 years ago

In GitLab by @nico-famedly on Jul 21, 2022, 16:06

added 12 commits

Compare with previous version

famedly-bot commented 2 years ago

In GitLab by @Techno-Disaster on Jul 21, 2022, 16:11

approved this merge request

famedly-bot commented 2 years ago

In GitLab by @Techno-Disaster on Jul 21, 2022, 16:11

started a merge train

famedly-bot commented 2 years ago

In GitLab by @Techno-Disaster on Jul 21, 2022, 16:14

mentioned in commit 75b825742e02383980a84368aa10cfdd54e4f77a

famedly-bot commented 2 years ago

In GitLab by @nikzen on Oct 11, 2022, 10:43

mentioned in issue undefined##undefined