Commit graph

110 commits

Author SHA1 Message Date
Ming Ming
3b8f0f09d4 Mark favorites in photos tab 2022-02-08 19:35:56 +08:00
Ming Ming
5dd1a83055 Browse favorites 2022-02-08 19:35:55 +08:00
Ming Ming
2c62b35321 Fix username in bloc id being case sensitive 2022-02-08 19:34:33 +08:00
Ming Ming
c6850b7a2d Refactor: extra bloc name builder fn 2022-02-08 18:22:55 +08:00
Ming Ming
313d5f3dcb FindFile now work with list of IDs 2022-02-08 18:22:55 +08:00
Ming Ming
d21e23c219 Optimize refresh in ScanAccountDir bloc 2022-02-08 18:22:55 +08:00
Ming Ming
afaf432ab0 Skip touch token check if etag matches 2022-02-08 18:22:54 +08:00
Ming Ming
4a07fd3a8b Tweak log 2022-01-16 04:37:02 +08:00
Ming Ming
e7d0fd206a Silently hide 404 dirs in LsDir 2022-01-10 20:04:39 +08:00
Ming Ming
a4898b2989 Rewrite startup sync to improve responsiveness
1. Limit db transactions with forward cache
2. Separate cache checking pass to show new files early
2022-01-06 18:55:46 +08:00
Ming Ming
430943e678 Rewrite how file data are stored in local DB 2022-01-06 18:55:46 +08:00
Ming Ming
2bddfcbf8c copyWith should create new instances of collections 2022-01-06 18:55:46 +08:00
Ming Ming
b5685d1d65 Check supported files early
Technically this can save some memory footprint
2022-01-06 18:55:46 +08:00
Ming Ming
2d8738146e Overhaul how dependencies are injected to clients 2021-12-08 04:29:43 +08:00
Ming Ming
97799f5f1b Fix reshared file listed as missing share 2021-12-08 04:29:43 +08:00
Ming Ming
4f1a359440 Non-managed sharees no longer listed as extra share
It's very confusing to user
2021-12-08 04:29:42 +08:00
Ming Ming
51ba3e405a Fix wrong path used to check imported shared album 2021-12-08 04:29:42 +08:00
Ming Ming
dd52287d15 Modifying AccountPref no longer reload home 2021-12-08 04:29:42 +08:00
Ming Ming
dbd9679cba Move account settings out of pref 2021-12-08 04:29:42 +08:00
Ming Ming
e98f4611da Overhaul how dependencies are injected to clients 2021-12-08 04:29:41 +08:00
Ming Ming
807b009dd7 Improve how filenames are logged 2021-12-02 19:58:36 +08:00
Ming Ming
eb46c8f3ea Refactor: format code 2021-12-02 19:57:05 +08:00
Ming Ming
667d0395ec Remove shared album from collection when deleting 2021-12-02 19:57:05 +08:00
Ming Ming
16553db19d Improve log 2021-11-26 18:10:53 +08:00
Ming Ming
1c63346b0c Fix sharing browser not updated after unsharing album 2021-11-25 22:59:25 +08:00
Ming Ming
7b7dc1be8a Fix share responsibilities among users in shared album 2021-11-25 22:59:25 +08:00
Ming Ming
b709dd1ed2 Fix wrong shared indicator in collections tab 2021-11-25 22:59:25 +08:00
Ming Ming
1595d741c3 Fix outdated item in sharing browser after added to collection 2021-11-25 21:02:42 +08:00
Ming Ming
4ef2431c83 Only reacts to events of the same account 2021-11-25 21:02:42 +08:00
Ming Ming
f9ae813613 Optimize unnecessary copy 2021-11-25 21:02:42 +08:00
Ming Ming
0de7e5ed87 Add missing close() 2021-11-25 21:02:42 +08:00
Ming Ming
5e8c8a1fde Only reacts to events of the same account 2021-11-25 21:02:42 +08:00
Ming Ming
d9a6d04ae8 Remove obsolete ListPendingSharedAlbum classes 2021-11-25 21:02:42 +08:00
Ming Ming
ee171b8187 Fix wrong display name used to construct AlbumShare 2021-11-25 21:02:42 +08:00
Ming Ming
8f9879b1d4 Type user name to share album with them
Doesn't make sense to list all users
2021-11-25 21:02:42 +08:00
Ming Ming
ebcfc03815 Refactor: make search suggestion bloc generic 2021-11-25 21:02:42 +08:00
Ming Ming
4027058809 Scan share_folder even if it's not under account roots 2021-11-25 21:02:41 +08:00
Ming Ming
679aaf36dd Refactor: extract fn to unstrip file path 2021-11-25 21:02:41 +08:00
Ming Ming
224b9ad151 Case insensitive string for username 2021-11-25 21:02:41 +08:00
Ming Ming
cd3476f9e8 Refactor: relocate function 2021-11-25 21:02:41 +08:00
Ming Ming
6e9a34342a Revamp how share is managed for album
Shares are now stored in the album json, such that users other than the album owner are aware of the shares
2021-11-25 21:02:41 +08:00
Ming Ming
d1841556c2 Inject repo to LsDirBloc 2021-11-25 21:02:41 +08:00
Ming Ming
0e7d41a589 Inject repo to ListAlbumShareOutlierBloc 2021-11-25 21:02:41 +08:00
Ming Ming
7583b09bb8 Inject AppDb 2021-11-04 03:23:30 +08:00
Ming Ming
ded9af9d18 Migrate to ExceptionEvent 2021-10-28 04:48:52 +08:00
Ming Ming
6dade916b5 Handle share removed event in batch 2021-10-28 04:48:51 +08:00
Ming Ming
001ed6b514 Tweak logs 2021-10-28 04:48:51 +08:00
Ming Ming
1106dfc72f List albums shared by me 2021-10-28 04:48:51 +08:00
Ming Ming
0478fe3840 List sharing fill albumFile properly
Not filling it prevent album cache to be used, which end up with more requests
2021-10-28 04:48:51 +08:00
Ming Ming
c2c3508414 No longer list non-link shares by me 2021-10-28 04:48:51 +08:00