Commit graph

145 commits

Author SHA1 Message Date
Ming Ming
224b9ad151 Case insensitive string for username 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
e0e8861770 Fix comment 2021-11-09 13:59:39 +08:00
Ming Ming
4d54b2099d Fix not cleaing latestItemTime after removing last item 2021-11-07 01:09:02 +08:00
Ming Ming
f997f0638d Fix cover not updating after removing manual cover 2021-11-07 01:09:02 +08:00
Ming Ming
8450f91afa Fix not unsetting cover after removing the last file 2021-11-07 01:08:57 +08:00
Ming Ming
456975360a Inject Pref to use cases 2021-11-04 03:23:34 +08:00
Ming Ming
7583b09bb8 Inject AppDb 2021-11-04 03:23:30 +08:00
Ming Ming
36dee1a7f1 Guard shared album logic with pref flag 2021-10-30 01:42:44 +08:00
Ming Ming
2ad844292a Compare username ignoring case 2021-10-30 01:42:44 +08:00
Ming Ming
9010756a08 Drop UserComment from both server and local 2021-10-28 04:48:52 +08:00
Ming Ming
83af36f2e7 Format code 2021-10-28 04:48:52 +08:00
Ming Ming
c127869e60 Tweak log 2021-10-28 04:48:52 +08:00
Ming Ming
ded9af9d18 Migrate to ExceptionEvent 2021-10-28 04:48:52 +08:00
Ming Ming
36611c7f35 REmove file shares when removing album 2021-10-28 04:48:51 +08:00
Ming Ming
a25d5f4632 Tweak logs 2021-10-28 04:48:51 +08:00
Ming Ming
4ac8cac73d Store user and time when an item is added to album 2021-10-28 04:48:51 +08:00
Ming Ming
b2016e6f9b Unshare when removing files from album 2021-10-28 04:48:51 +08:00
Ming Ming
cf359670cd Fix files shared in other albums not unshared correctly 2021-10-28 04:48:51 +08:00
Ming Ming
cf966a13e2 Refactoring: extract list dir share class 2021-10-28 04:48:51 +08:00
Ming Ming
f1cffb0571 Share files added to a shared album 2021-10-28 04:48:51 +08:00
Ming Ming
2aa792370b Support modified share_folder parameter 2021-10-28 04:48:51 +08:00
Ming Ming
bf5845f832 Settings to disable face recognition support 2021-10-28 04:48:51 +08:00
Ming Ming
5fe70c3964 Support account specific settings 2021-10-28 04:48:51 +08:00
Ming Ming
8931a191f5 Tweak logs 2021-10-28 04:48:51 +08:00
Ming Ming
5b1dcfb515 (Un)Share associated files when (un)sharing an album 2021-10-28 04:48:51 +08:00
Ming Ming
6f255a9386 Fix list album not handling new/removed share 2021-10-28 04:48:51 +08:00
Ming Ming
da1093a606 Share multiple files as link 2021-10-09 16:46:18 +08:00
Ming Ming
07e2aba673 Refactoring: extract fn 2021-10-09 16:46:18 +08:00
Ming Ming
85daba9786 Manage shares 2021-10-07 18:04:49 +08:00
Ming Ming
60a0a387b2 (Android) Show our own download notifs 2021-10-02 17:36:11 +08:00
Ming Ming
808c654e75 Convenient fn to extract filename from File 2021-10-02 17:35:46 +08:00
Ming Ming
7bb41887b3 Refactoring: hide resync and populate 2021-09-29 22:56:54 +08:00
Ming Ming
4c222a239a Download album 2021-09-29 22:56:54 +08:00
Ming Ming
f7ed6d1a01 Refactoring: replace tuple with actual class 2021-09-29 04:57:38 +08:00
Ming Ming
19367e2a0d Refactoring: extract create share fn 2021-09-28 16:36:41 +08:00
Ming Ming
20dfc2e00e Support share link when sharing a single file 2021-09-28 16:36:37 +08:00
Ming Ming
3d2003de26 Fix exception resyncing file w/o id and not in DB 2021-09-28 16:36:12 +08:00
Ming Ming
f01c64a155 Remove metadata from album files
This help reduce the file size
2021-09-28 16:36:08 +08:00
Ming Ming
3d5de229cb Refactoring: extract remove item from album 2021-09-28 16:33:40 +08:00
Ming Ming
a15f7a0db6 Fix new provider being created instead of modified 2021-09-28 16:32:13 +08:00
Ming Ming
734807733c Migrate to DownloadManage on Android
Fix OOME when downloading large files
2021-09-20 01:37:54 +08:00
Ming Ming
c16c97ec9f Delete obsolete old cache 2021-09-16 18:30:09 +08:00
Ming Ming
06023228b8 Conform to the new lint rules 2021-09-16 03:53:10 +08:00
Ming Ming
a0b62cac35 Migrate to new person API 2021-09-11 16:03:58 +08:00
Ming Ming
858455206c Minimize platform code 2021-09-11 16:03:15 +08:00
Ming Ming
33887402ec Preliminary face recognition app support 2021-09-09 02:07:52 +08:00
Ming Ming
2c8434b768 Fix unnecessarily opening DB as RW 2021-09-09 02:07:52 +08:00
Ming Ming
458ef2f733 Refactoring: extract add items to album 2021-09-09 02:07:52 +08:00
Ming Ming
0c08fc8122 New flag to control logging file name 2021-09-05 02:15:53 +08:00
Ming Ming
2a462cf906 Rename file if the same name exists in destination 2021-08-28 04:41:03 +08:00
Ming Ming
4a32f49a11 Add pending shared albums to collection 2021-08-23 05:03:26 +08:00
Ming Ming
c0f65745f7 List pending shard albums 2021-08-23 05:03:26 +08:00
Ming Ming
1e941e8a05 Show state of the metadata task in photos page 2021-08-16 03:46:01 +08:00
Ming Ming
06c797a736 File moved event 2021-08-16 03:46:01 +08:00
Ming Ming
a28f8b6c1b Move shared albums into our data dir 2021-08-09 04:42:25 +08:00
Ming Ming
ac4a2aca15 Share album file with other users 2021-08-09 04:42:25 +08:00
Ming Ming
02e8bf0c76 New naming scheme for album files 2021-08-08 15:13:27 +08:00
Ming Ming
a4122854b4 Simplify code with typedef 2021-08-08 15:13:27 +08:00
Ming Ming
6362eb574e Request public link to file 2021-08-08 12:40:04 +08:00
Ming Ming
2812e1336e Handle files in trash bin 2021-08-02 19:22:28 +08:00
Ming Ming
de9c6e15ef Move op 2021-08-02 14:47:18 +08:00
Ming Ming
c3376b10da Throttle album clean ups when removing file 2021-08-02 14:47:18 +08:00
Ming Ming
df26b7a8c8 Migrate to null-safety 2021-07-25 00:23:08 +08:00
Ming Ming
1a4779f465 Fix album dir hardcoded in low level logic 2021-07-24 04:09:01 +08:00
Ming Ming
7d078b5a8d Fix potential deadlock listing albums 2021-07-22 16:44:49 +08:00
Ming Ming
516f30f423 Fix album item skipped if exception is thrown 2021-07-17 23:40:38 +08:00
Ming Ming
8985c04af9 Skip metadata for federation shares
Until Nextcloud supports them
2021-07-16 22:16:22 +08:00
Ming Ming
94583e805c Give up loading metadata if failed before 2021-07-13 16:28:16 +08:00
Ming Ming
1f49c2d3ea Simplify metadata loader
No reason for the metadata loader to handle the downloading
2021-07-13 16:28:16 +08:00
Ming Ming
a124c99f33 Fix no albums shown if any one of them erred 2021-07-11 13:32:35 +08:00
Ming Ming
1f01c83f9a Extract album item class 2021-07-11 13:32:35 +08:00
Ming Ming
decf78f9b7 Refractor code 2021-07-03 17:11:30 +08:00
Ming Ming
8faa31852c Extract dynamic album update functions 2021-07-02 20:03:09 +08:00
Ming Ming
b53c48808f Dynamic album that reflects dir contents 2021-06-29 21:41:06 +08:00
Ming Ming
0e7f2462b6 Abstract album content provider 2021-06-29 18:11:59 +08:00
Ming Ming
b47cb5c63c Customize date/time of a file 2021-06-23 01:05:02 +08:00
Ming Ming
30ec7dab7a No longer propagate property updates to album 2021-06-15 03:30:46 +08:00
Ming Ming
f4faa1ed1f Resync items with db when opening album 2021-06-15 03:30:46 +08:00
Ming Ming
954d8a869d New archive property for file 2021-06-06 03:39:58 +08:00
Ming Ming
a846a51332 Treat metadata as property 2021-06-06 03:39:58 +08:00
Ming Ming
f7d0a41540 Group data srcs in new file 2021-05-24 18:28:05 +08:00
Ming Ming
be8a45751c Make album repo optional in remove
Useful when removing data files
2021-05-24 18:28:05 +08:00
Ming Ming
bea76298dd PutFileBinary creates parent dirs automatically 2021-05-24 18:28:05 +08:00
Ming Ming
7b8ed4885d ScanDir should not scan our remote storage 2021-05-24 18:28:05 +08:00
Ming Ming
15e1591622 Put server-side storage path together 2021-05-24 18:28:05 +08:00
Ming Ming
88491f13cb Move remote album files to a subdir 2021-05-24 18:28:05 +08:00
Ming Ming
e95d0470c4 Fix processing dirs as album files 2021-05-24 18:28:05 +08:00
Ming Ming
e5434a64e4 Add use case to create dirs 2021-05-24 18:28:02 +08:00
Ming Ming
46e077f5ab Tweak logs 2021-05-24 15:33:08 +08:00
Ming Ming
391226f56b Only scan metadata for images 2021-05-06 14:42:01 +08:00
Ming Ming
553bdbf8eb Optimize log 2021-05-01 01:02:41 +08:00
Ming Ming
45e3140ea9 Tweak how to clear metadata 2021-04-29 03:31:54 +08:00
Ming Ming
63772e6e17 Clean up logs 2021-04-28 13:58:41 +08:00
Ming Ming
ab573ad273 Initial commit 2021-04-10 12:28:12 +08:00