Konrad Pozniak
c55d79562c
fix scheduling posts ( #4392 )
...
Mastodon returns different reponses when posting normally and when
scheduling. This was previously ignored silently, but Moshi is more
correct than Gson and fails, which causes the `SendStatusService` to
retry sending forever and a lot of posts are scheduled.
Mastodon should actually ignore multiple attempts at scheduling the same
post, but doesn't so I filed this
https://github.com/mastodon/mastodon/issues/30039
cc @cbeyls
2024-04-25 17:08:57 +02:00
Konrad Pozniak
5192fb08a5
upgrade ktlint plugin to 12.0.3 ( #4169 )
...
There are some new rules, I think they mostly make sense, except for the
max line length which I had to disable because we are over it in a lot
of places.
---------
Co-authored-by: Goooler <wangzongler@gmail.com>
2024-01-04 17:00:55 +01:00
UlrichKu
b286255630
3532: Show badge on conversations tab on new conversations ( #3890 )
...
Fixes #3532
(Old PR, now closed: https://github.com/tuskyapp/Tusky/pull/3533 )
Listens on new notifications and if a "direct mention" is detected a
badge (red dot) is shown on the conversations tab if present.
I am missing things like this a lot and also big accounts are unhappy
with the usability so far:
https://mastodon.social/@pallenberg/110129889996182814
2023-10-15 21:39:38 +02:00
Levi Bard
1badf68531
Refresh timelines when filters are added/edited/removed ( #3552 )
...
Fixes #3546
2023-09-28 20:01:44 +02:00
Konrad Pozniak
54e92b2156
improve local status updates ( #3480 )
...
The idea here is: Everytime we get hold of a new version of a post, we
update everything about that post everywhere.
This makes the distincion between different event types unnecessary, as
everythng is just a `StatusChangedEvent`.
The main benefit is that posts should be up-to-date more often, which is
important considering there is now editing and #3413
2023-09-26 09:08:58 +02:00
Konrad Pozniak
321d17f5de
Remove Rx from EventHub and TimelineCases ( #3446 )
...
* remove Rx from EventHub and TimelineCases
* fix tests
* fix AccountViewModel.unblockDomain
* remove debug logging
2023-03-18 10:11:47 +01:00
Levi Bard
f71aa55bbe
Remove stale pre-edit statuses from the thread view. ( #3377 )
...
Fixes #3366
2023-03-10 20:24:41 +01:00
Konrad Pozniak
16ffcca748
add ktlint plugin to project and apply default code style ( #2209 )
...
* add ktlint plugin to project and apply default code style
* some manual adjustments, fix wildcard imports
* update CONTRIBUTING.md
* fix formatting
2021-06-28 21:13:24 +02:00
Ivan Kupalov
44a5b42cac
Timeline refactor ( #2175 )
...
* Move Timeline files into their own package
* Introduce TimelineViewModel, add coroutines
* Simplify StatusViewData
* Handle timeilne fetch errors
* Rework filters, fix ViewThreadFragment
* Fix NotificationsFragment
* Simplify Notifications and Thread, handle pin
* Redo loading in TimelineViewModel
* Improve error handling in TimelineViewModel
* Rewrite actions in TimelineViewModel
* Apply feedback after timeline factoring review
* Handle initial failure in timeline correctly
2021-06-11 20:15:40 +02:00
kyori19
fef4b8b07f
[needs help] Support announcements ( #1977 )
...
* Implement announcements activity
* Update reactions without api access
* Add badge style
* Use emptyList() as default parameter
* Simplify newIntent
* Use List instead of Array
* Remove unneeded ConstraintLayout
* Add lineSpacingMultiplier
* Fix wording
* Apply material design's default chip style
* Dismiss announcements automatically
2020-11-18 21:12:27 +01:00
Levi Bard
8cb83050ac
Add support for muting conversations ( #1732 )
...
* Add support for muting conversations
Implements #1731
* Fix CI
* Apply code review feedback
2020-03-24 21:06:04 +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
Levi Bard
a6819ce28e
Implement instance mutes ( #1311 )
...
* Implement instance mutes. #1143
* Move new classes to instancemute component
* Add progress bar while instance list loads
* Add undo snackbar for instance unmuting
* Update display text for instance mutes
2019-06-11 15:56:27 +02:00
Konrad Pozniak
fd7471f2ab
Polls part 1 - displaying in timelines and voting ( #1200 )
...
* add entity classes
* change data models and add database migration
* add polls to StatusViewData
* show poll results
* add methods for vote handling
* add voting interface
* enable voting in TimelineFragment
* update polls immediately
* enable custom emojis for poll options
* enable voting from search fragment
* add voting layout to detailed statuses
* fix tests
* enable voting in ViewThreadFragment
* enable voting in ConversationsFragment
* small refactor for StatusBaseViewHolder
2019-04-22 10:11:00 +02:00
Konrad Pozniak
e371fa0e24
Tab customization & direct messages tab ( #1012 )
...
* custom tabs
* custom tabs interface
* implement custom tab functionality
* add database migration
* fix bugs, improve ThemeUtils nullability handling
* implement conversationsfragment
* setup ConversationViewHolder
* implement favs
* add button functionality
* revert 10.json
* revert item_status_notification.xml
* implement more menu, replying, fix stuff, clean up
* fix tests
* fix bug with expanding statuses
* min and max number of tabs
* settings support, fix bugs
* database migration
* fix scrolling to top after refresh
* fix bugs
* fix warning in item_conversation
2019-02-12 19:22:37 +01:00
Konrad Pozniak
348c20c792
New settings ( #891 )
...
* change drawer items
* rename SettingsActivity
* introduce AccountSettings activity
* improve account settings, move notification settings
* sync settings with server
* rename settings back to preferences
* add functionality for settings
* move mediaPreviewEnabled preference to AccountPreferences
* replace shared prefs with accountmanager
* move PreferencesFragment to support library
* split preferences fragment into smaller fragments,
merge AccountPreferencesActivity into PreferencesFragment
* adjust icon size, add icons to general preferences
* change mediaPreviewEnabled and alwaysShowSensitiveMedia pref position
* add database migration
* remove pullNotificationCheckInterval option
* fix preference in TimelineFragment
* Update Chinese translations. (#915 )
* Update zh-CN translations.
* Update zh-SG translations.
* Update zh-TW translations.
* Update zh-MO translations.
* Update zh-HK translations.
* Fix errors in zh-CN translations.
* Fix errors in zh-SG translations.
* Fix errors in zh-TW translations.
* Fix errors in zh-MO translations.
* Fix errors in zh-HK translations.
2018-11-12 21:09:39 +01:00
Konrad Pozniak
f022944e90
add possibility to change profile fields, refactor ( #751 )
...
* refactor EditProfileActivity, add profile fields
* preserve transparency when cropping profile images
* dont validate profile fields on client side
* revert unintentional change in card_frame_dark.xml
* improve activity_edit_profile layout for tablets
* Revert "improve activity_edit_profile layout for tablets"
This reverts commit 20ff3d167c
.
* improve activity_edit_profile layout for tablets
* fix bug in EditProfileActivity, add snackbar
* improve EditProfileActivity code
* use events instead of shared prefs to communicate profile update
2018-08-15 20:47:09 +02:00