Commit Graph

25 Commits

Author SHA1 Message Date
Ivan Kupalov 162360eef3 Improve notifications fetching (#1930)
* Improve notifications fetching

 - Only fetch notifications up to the latest fetched one
 - Use timeline markers to avoid showing already seen notifications

* Apply some of the suggestions
2020-10-05 13:27:55 +03:00
Alibek Omarov 9bc6ece29a streaming: implemented streaming for notifications 2020-10-02 20:54:26 +03:00
Alibek Omarov 84ffe73d2b chats: add new notification type pleroma:chat_mention (wip) 2020-10-02 01:36:20 +03:00
Alibek Omarov 31bb5daea1 chats: implement sending messages, prototype 2020-09-17 01:28:25 +03:00
Alibek Omarov e169c89aea chats: finished chat listing 2020-08-17 19:41:38 +03:00
Alibek Omarov 05d54b66de chats: add Chat and ChatMessage entities, add Pleroma API calls 2020-07-26 22:21:54 +03:00
Konrad Pozniak 83600ee92d enable multiple hashtags in one hashtag tab (#1790)
* enable multiple hashtags in one hashtag tab

* add comment explaining the code in TabAdapter

* delete unused drawables

* add padding to EditText in dialog
2020-05-22 20:14:53 +03:00
Alibek Omarov bbbf3bf55d Stickers: add PleromaFE stickers support, enabled in settings 2020-05-13 02:59:20 +03:00
Levi Bard e7bd37b075 Add notifications for follow requests (#1729)
* Add notifications for follow requests
Issue #1719

* Revert item_follow_request layout, create new layout for follow request notifications

* Migrate follow request interaction from notification to observable pattern

* Filter follow request notifications by default

* Add missing cases for system notification generation

* Format code
2020-05-03 03:01:16 +03:00
a1batross 496ad50b18 filters: represent POST as json becausr booleans cannot be represented in urlencoded as Pleroma thinks 2020-04-28 04:01:19 +02:00
Alibek Omarov 4f1400842f emoji_reactions: general refactoring, implement emoji_reactions_by 2020-03-06 21:04:14 +03:00
Alibek Omarov 63a751768a Merge upstream 2020-02-19 04:54:30 +03:00
Alibek Omarov 483aae6c74 emojireactions: fix EmojiReaction object 2020-02-19 04:18:21 +03:00
Konrad Pozniak 3f3166522b
fix list editing by moving account_ids from query to form param (#1690)
* fix list editing by moving account_ids from query to form param

* fix DialogFramentStyle
2020-02-18 08:45:10 +01:00
Alibek Omarov 1b4f1eea0e emojireactions: add entities and api endpoints 2020-02-06 23:19:28 +03:00
Alibek Omarov 8cb743efaa Implement muting/unmuting conversations, fix possible appearing of muted users in notifications 2020-01-26 16:13:22 +03:00
Alibek Omarov 7657202347 MastodonApi: add with_muted field on every timeline 2020-01-16 18:14:41 +03:00
Alibek Omarov 7f9bfb5790 NodeInfo: implement nodeinfo fetching 2020-01-16 16:43:54 +03:00
Alibek Omarov 1d79902bdc MastodonApi: add support for subscribing endpoints and subscribing status field 2020-01-11 10:09:57 +03:00
Konrad Pozniak 84a3280964 move to androidx paging 2019-12-30 20:40:27 +01:00
Konrad Pozniak c44dd455b4
Implement identity proof api (#1597)
* implement identity proof api

* fix warnings in AccountActivity

* fix createClickableText method

* improve error handling

* use combineOptionalLiveData to simplify code
2019-12-21 18:56:16 +01:00
Ivan Kupalov 8770fbe986 ComposeActivity refactor (#1541)
* Convert ComposeActivity to Kotlin

* More ComposeActivity cleanups

* Move ComposeActivity to it's own package

* Remove ComposeActivity.IntentBuilder

* Re-do part of the media downsizing/uploading

* Add sending of status to ViewModel, draft media descriptions

* Allow uploading video, update description after uploading

* Enable camera, enable upload cancelling

* Cleanup of ComposeActivity

* Extract CaptionDialog, extract ComposeActivity methods

* Fix handling of redrafted media

* Add initial state and media uploading out of Activity

* Change ComposeOptions.mentionedUsernames to be Set rather than List

We probably don't want repeated usernames when we are writing a post
and Set provides such guarantee for free plus it tells it to the
callers. The only disadvantage is lack of order but it shouldn't be a
problem.

* Add combineOptionalLiveData. Add docs.

It it useful for nullable LiveData's. I think we cannot differentiate
between value not being set and value being null so I just added the
variant without null check.

* Add poll support to Compose.

* cleanup code

* move more classes into compose package

* cleanup code

* fix button behavior

* add error handling for media upload

* add caching for instance data again

* merge develop

* fix scheduled toots

* delete unused string

* cleanup ComposeActivity

* fix restoring media from drafts

* make media upload code a little bit clearer

* cleanup autocomplete search code

* avoid duplicate object creation in SavedTootActivity

* perf: avoid unnecessary work when initializing ComposeActivity

* add license header to new files

* use small toot button on bigger displays

* fix ComposeActivityTest

* fix bad merge

* use Singles.zip instead of Single.zip
2019-12-19 19:09:40 +01:00
Konrad Pozniak d9694df0c2
Bookmarks (#1560)
* add bookmarks to timelines

* add Bookmarks to main menu

* cleanup

* handle BookmarkEvent

* fix tests

* fix bookmark handling in NotificationsFragment

* add bookmark accessibility actions
2019-11-19 10:15:32 +01:00
kyori19 9e4c19a47e Scheduled toot (#1004)
* Scheduled toot

* Hide scheduled toot button if version < 2.7.0

* Fix timeline reloading after toot

* Add edit icon to ComposeScheduleView

* Add button to reset scheduled toot

* Close bottom sheet and change button color after time a was selected

* Fix edit icon's size

* List of scheduled toots

* Fix instance version check

* Use MaterialDatePicker

* Set date and time consecutively

* Add licenses
2019-10-02 21:28:12 +02:00
Konrad Pozniak 54a0d5406a
Remove search v1 (#1484)
* remove search v1, convert MastodonApi to Kotlin

* format MastodonApi nicely

* use default params in ConversationRepository

* improve code for LoginActivity
2019-09-22 08:18:44 +02:00