Commit Graph

150 Commits

Author SHA1 Message Date
Ammar Githam 8f218b9515 Add FriendshipRepository to ProfileFragmentViewModel constructor 2021-06-10 17:03:24 +09:00
Ammar Githam ed8ca2da02 More groundwork for ProfileFragmentViewModel 2021-06-09 09:09:40 +09:00
Ammar Githam 29d2b894d8 Interchange UserService and UserRepository names. Check description.
As per the sample provided at https://github.com/android/architecture-components-samples/tree/main/GithubBrowserSample, the Retrofit interfaces should be named Services and the classes using the services are Repositories.

Once all are properly named, we can move the db repositories inside the repositories package.
2021-06-09 08:40:13 +09:00
Ammar Githam 003beec5b6 Convert RecentSearchDao, RecentSearchDataSource and RecentSearchRepository to kotlin 2021-06-08 21:15:27 +09:00
Austin Huang 544d9f87bc
fix various comments bugs
1. redo ChildCommentsFetchResponse structure, stress-tested
2. navigation on more graph again
3. proper "next page" handling
2021-06-07 18:10:48 -04:00
Ammar Githam 76b246573d Convert FavoriteDao, FavoriteDataSource and FavoriteRepository to kotlin 2021-06-07 06:54:12 +09:00
Ammar Githam 6b499e3dfc Migrate DirectMessagesService to object 2021-06-06 20:11:36 +09:00
Ammar Githam 143a0ce259 Convert GraphQLRepository and GraphQLService to kotlin 2021-06-06 13:14:29 +09:00
Ammar Githam a2bd2e4b53 Convert UserRepository and UserService to kotlin 2021-06-06 10:11:30 +09:00
Ammar Githam e56e4c17c9 Migrate MediaService to object 2021-06-06 09:43:19 +09:00
Ammar Githam 3f09c7d173 Convert User to kotlin 2021-06-05 19:58:01 +09:00
Ammar Githam faf299f6f0 Preparation for adding ProfileFragmentViewModel 2021-06-05 19:36:00 +09:00
Ammar Githam b997504602 Convert MediaRepository and MediaService to kotlin. 2021-06-04 07:17:24 +09:00
Ammar Githam bcec6d373c Fix comment replies cursor 2021-06-01 18:16:54 +09:00
Ammar Githam cc1741005b DirectMessagesRepository migrated to suspend functions 2021-06-01 06:45:36 +09:00
Ammar Githam 741a997424 More suspend funs 2021-05-31 22:16:18 +09:00
Ammar Githam 87e6e4440f Convert to kotlin, suspend funs, and viewModelScope 2021-05-31 20:55:22 +09:00
Ammar Githam 68bc9a7543 Rename .java to .kt 2021-05-31 20:55:22 +09:00
Austin Huang e8ce2898b6
Merge branch 'master' of https://github.com/austinhuang0131/instagrabber 2021-05-29 10:47:52 -04:00
Austin Huang 890139a287
comments redo (logged-in endpoint) 2021-05-29 10:46:23 -04:00
Ammar Githam 3db7b53757 Convert DirectThreadViewModel to kotlin and fix ThreadManager 2021-05-29 23:14:04 +09:00
Ammar Githam ddac623184 Rename .java to .kt 2021-05-29 23:14:03 +09:00
Ammar Githam 59750b1026 Convert DM managers to kotlin 2021-05-29 22:22:28 +09:00
Ammar Githam 77965f9634 Convert FavoritesViewModel to kotlin and optimise code 2021-05-25 07:36:47 +09:00
Ammar Githam 39687136dc Rename .java to .kt 2021-05-25 07:36:47 +09:00
Ammar Githam ce31554687 Fix Caption de-serialization 2021-05-25 02:08:46 +09:00
Ammar Githam 841c3bdbda Convert to kotlin 2021-05-25 01:58:37 +09:00
Austin Huang 7e00dcc1b7
more #1309 2021-05-23 21:34:19 -04:00
Ammar Githam c784ca937d Fix FriendshipStatus variable names 2021-05-23 20:17:52 +09:00
Ammar Githam d7462109db Convert to kotlin 2021-05-23 16:48:27 +09:00
Ammar Githam 742b696d17 Share posts via DM. Resolves part of austinhuang0131/barinsta#537 2021-05-23 15:57:01 +09:00
Ammar Githam 13bfc9cb84 Convert some retrofit response classes to kotlin 2021-05-23 06:26:33 +09:00
Ammar Githam 17fb608c34 Convert some more classes to kotlin 2021-05-22 20:10:53 +09:00
Ammar Githam 84e93431ae Add Kotlin and convert some model classes to kotlin 2021-05-22 17:58:18 +09:00
Austin Huang f89f0ef542
add a simple user constructor 2021-05-15 12:52:31 -04:00
Ammar Githam 074ee18c9d Improve comments viewer ui and ux. Update ui for likes viewer and follows viewer. 2021-05-02 18:16:25 +09:00
Ammar Githam c859669ac1 Add search fragment with recent searches 2021-04-14 00:17:23 +09:00
Ammar Githam 9ea7c2c3af Set new uri path to a different PreferenceKey to maintain ability to downgrade. 2021-04-09 20:18:41 +09:00
Ammar Githam 7e3edf639d Merge branch 'master' into support-android-11 2021-04-09 20:07:22 +09:00
Ammar Githam 1fdd9077d5 Remove invalid gifs before submitting to adapter. Fixes https://github.com/austinhuang0131/barinsta/issues/1013 2021-04-09 19:36:11 +09:00
Ammar Githam 7b60258959 Improve folder selection UI/UX 2021-04-08 23:48:44 +09:00
Ammar Githam ef847321dc No more scanning 2021-04-08 09:02:18 +09:00
Ammar Githam bca38a2645 Fix audio recording in dm 2021-04-06 00:51:01 +09:00
Ammar Githam 9b691a453e Remove read/write storage permissions.
Add an activity to select directory.
2021-04-04 23:53:10 +09:00
Ammar Githam 7c0acdbd6e Migrate File usage to DocumentFile 2021-04-03 19:53:01 +09:00
Ammar Githam 91c70b778a Move downloads to Environment downloads folder 2021-04-02 01:42:21 +09:00
Ammar Githam 666a36ff20 Fix crash when fetching self profile info is slow 2021-03-31 21:43:20 +09:00
Ammar Githam 7dc9583e51 Null checks. Fixes https://github.com/austinhuang0131/barinsta/issues/905 2021-03-29 22:48:55 +09:00
Ammar Githam 6bed9bf28c Fix double voice message 2021-03-25 19:47:33 +09:00
Austin Huang 1dd78b7d91
reorganize responses 2021-03-22 14:51:44 -04:00
Austin Huang e9239c31b0
migrate ProfileFetcher 2021-03-21 21:18:07 -04:00
Ammar Githam 839e30a4e5 Add delete option in post view. Fixes 1 part of https://github.com/austinhuang0131/barinsta/issues/289 2021-03-21 01:14:57 +09:00
Ammar Githam 9cdbd89328 Add manual mark as seen menu item in thread when auto mark is disabled 2021-03-20 21:04:49 +09:00
Ammar Githam 6f67dadb31 Handle new created threads using inbox manager 2021-03-20 12:40:51 +09:00
Austin Huang 383ffce89f
better handling for own profile 2021-03-18 16:34:26 -04:00
Ammar Githam 565a8d3dd6 Null check current user. Fixes 1 part of https://github.com/austinhuang0131/barinsta/issues/816 2021-03-18 21:50:39 +09:00
Austin Huang fbb5c244ae
patrol certain error strings 2021-03-17 15:09:00 -04:00
Ammar Githam dfa3a50893 Auto mark dm seen if enabled in settings. Fixes https://github.com/austinhuang0131/barinsta/issues/797 2021-03-18 01:41:29 +09:00
Austin Huang a55def53c5
restore dm button on profiles 2021-03-16 20:04:53 -04:00
Ammar Githam 6d73528387 Send stickers and gifs in DM 2021-03-16 01:48:39 +09:00
Austin Huang d6539bddc5
Merge branch 'master' into dm-notifications-enhancements 2021-03-05 14:21:24 -05:00
Austin Huang 7acd5faefd
notification backend revamp 2021-03-04 15:27:46 -05:00
Ammar Githam a7a595f8d4 Centralised syncing of inbox. 2021-02-28 00:59:55 +09:00
Ammar Githam ea7236dcc1 Merge remote-tracking branch 'origin/dm-notifications-enhancements' into dm-notifications-enhancements 2021-01-24 23:40:56 +09:00
Ammar Githam 5e3aed38b9 Add pending inbox 2021-01-24 23:39:46 +09:00
Austin Huang 78e3ffe04a
private api option for profilefetcher 2021-01-23 14:17:56 -05:00
Austin Huang 89441a3562
more collection features 2021-01-22 23:33:36 -05:00
Ammar Githam 6aee7ea863 Allow ending a group chat 2021-01-20 02:25:22 +09:00
Ammar Githam ba526eb0bb Allow leaving group 2021-01-20 00:02:08 +09:00
Ammar Githam 17709c176c Allow toggling approval requirement in group 2021-01-19 22:43:51 +09:00
Ammar Githam 10c6902c83 Merge remote-tracking branch 'origin/dm-notifications-enhancements' into dm-notifications-enhancements 2021-01-19 21:47:17 +09:00
Ammar Githam 7addb16e5c Approve/Deny new users 2021-01-19 21:46:39 +09:00
Austin Huang 117b1c1629
viewing saved collections, so half of #545 2021-01-17 14:11:15 -05:00
Ammar Githam 52d2baa128 Add mute/unmute messages and mentions 2021-01-17 17:02:43 +09:00
Ammar Githam 13d95523a3 Swipe to reply 2021-01-17 03:09:07 +09:00
Ammar Githam 8a659c9f1f Allow forwarding messages (need to check types which cannot be forwarded) 2021-01-16 03:10:17 +09:00
Ammar Githam 8e3d0af9d3 Allow unsend message 2021-01-15 03:28:30 +09:00
Ammar Githam 6a163454f4 Allow removing like/reaction 2021-01-15 02:24:12 +09:00
Ammar Githam 3795ff2420 Merge remote-tracking branch 'origin/dm-notifications-enhancements' into dm-notifications-enhancements 2021-01-13 22:25:01 +09:00
Ammar Githam cf62d88531 Add like/reaction (WIP) 2021-01-13 22:22:25 +09:00
Austin Huang c9f891e4e1
enforce _uuid consistency 2021-01-11 15:08:23 -05:00
Ammar Githam ba10f8b410 Support opening media, hashtag, location, mentions in direct thread 2021-01-10 18:19:27 +09:00
Ammar Githam 9ba1893746 Add ViewModel to post view to maintain state. Update some ui 2021-01-09 20:24:16 +09:00
Ammar Githam 039194d046 Merge remote-tracking branch 'origin/dm-notifications-enhancements' into dm-notifications-enhancements 2021-01-08 21:49:48 +09:00
Ammar Githam 0018cd0b7f Migrate FeedModel and ProfileModel to Media and User 2021-01-07 21:36:33 +09:00
Ammar Githam 0ec3691cac Fix result from image edit always null 2021-01-03 20:29:41 +09:00
Ammar Githam e1d8e02630 Update DM settings page 2021-01-03 18:55:19 +09:00
Ammar Githam d42d4dd3ea Merge branch 'master' into dm-notifications-enhancements 2021-01-02 13:00:14 +09:00
Ammar Githam 343b2cf9d7 Update DM module. (WIP)
Remove left over images


DM update (WIP)

Update DM module. (WIP)


Update DM module. (WIP)
2021-01-02 11:54:32 +09:00
Austin Huang 8ebe8dd0f9
story archive, so half of #460 2020-12-29 17:33:44 -05:00
Austin Huang e539e426df
story read improvement (WIP) 2020-12-24 14:11:49 -05:00
Austin Huang f909408916
edit post caption (just basic design, still WIP) 2020-12-23 17:12:25 -05:00
Austin Huang 7cd56080cd
fix mentions (final), improve follower comparison 2020-12-21 14:27:15 -05:00
Ammar Githam 126a0f7f4b Preparing migration to Room 2020-12-07 19:47:03 +09:00
Ammar Githam efd9a9c29d Update Discover tab 2020-11-01 15:02:54 +09:00
Ammar Githam 9b83c5e832 More updated. Handle clicks. Updated comments viewer, etc 2020-10-24 18:10:21 +09:00
Ammar Githam 05c0937c6f Add Backup and restore. Update DirectoryChooser UI.
The updated backup and restore is backward compatible with old backup files. Just have updated the default file name and extension for newer backups.
2020-09-21 03:52:34 +09:00
Ammar Githam cf974a74f3 Add favorites, also fixes the hashtag follow, and some theming 2020-09-19 04:18:14 +09:00
Ammar Githam 37912854d0 Add activity/notification view fragment 2020-09-11 22:27:09 +09:00
Ammar Githam 6b0fe3ff78 Move viewmodels package to root directory 2020-09-06 15:06:36 +09:00