f4f2a5546c
Prevent race in status action account list
2020-05-10 15:04:22 -04:00
866edc472d
Show avatar and instance domain in account list in Preferences
2020-05-10 14:54:20 -04:00
88e4f52b5d
Fix crash when adding account
...
Adding a UserData.LocalAccountInfo with a nil username while the
PreferencesView is on screen will cause a crash, since it triggers a
Combine publish upon which the PreferencesView expects to be able to
display the username of all accounts.
2020-05-10 14:41:07 -04:00
98529ca5af
Remove notifications from the bottom when scrolling up notifications list
2020-05-10 12:56:03 -04:00
6d8c5f632c
Fix scroll-to-top sometimes not scrolling all the way to the top
2020-05-10 12:56:01 -04:00
4fdafa893e
Add drawing attachments using PencilKit
2020-05-09 22:14:48 -04:00
1e41c8fa17
Remove MastodonCache usgae from XCBActions
2020-05-06 23:05:15 -04:00
ebbfc7a132
Fix race condition on loading notifications
2020-05-06 19:32:32 -04:00
d6c506488b
Replace a bunch of MastodonCache uses with CoreData
2020-05-02 19:52:35 -04:00
ee5e049355
Use CoreData for bookmarks and search results
2020-04-27 19:25:41 -04:00
f53474ac90
Use CoreData for notifications screen
2020-04-27 19:20:09 -04:00
fa1daa682f
Convert profile VC to use CoreData objects
...
Does not yet remove old statuses when scrolling up, like timeline VC
2020-04-13 22:51:21 -04:00
030bee1948
Convert conversation VC to use CoreData models
2020-04-13 22:51:15 -04:00
ed37b16463
Start adding CoreData-based "reference" counting for statuses
...
Prune old statuses that aren't likely to be shown again when scrolling
in timeline table view
2020-04-12 23:08:33 -04:00
2c8ba878b7
Start converting UI to use CoreData backed objects instead of API
...
objects directly
2020-04-12 12:54:27 -04:00
465aedd43f
Make account info username optional
...
Onboarding view controller needs to set the account info object on the
mastodon controller before calling getOwnAccount since getOwnAccount
will upsert the user's account into the persistent container, which
requires the account info to exist to create a unique-per-account
identifier.
2020-04-12 11:14:10 -04:00
fcab6818b0
Hide large image source view during expand/shrink animation
2020-03-25 23:10:48 -04:00
80cf1850dd
Add trackpad/magic mouse support for navigation controller interactive push gesture
2020-03-25 22:29:32 -04:00
e612964464
Allow scrolling w/ trackpad/magic mouse to dismiss gallery
2020-03-25 22:12:26 -04:00
49a437583e
Fix incorrect large image size during expand/shrink animation in some
...
cases
2020-03-25 22:09:00 -04:00
8a513186aa
Add pointer interactions status buttons and profile header more button
2020-03-24 23:02:40 -04:00
2e8241d734
Move attachment context menu interaction to AttachmentView
2020-03-20 22:28:23 -04:00
c9c001d403
Improve attachment previewing
...
- Set correct preview size
- Don't show controls
2020-03-20 22:13:04 -04:00
4018d39312
Fix double gestures in attachments gallery
2020-03-17 21:56:29 -04:00
5e9caf9179
Use LoadingLargeImageViewController for account avatar/header
...
Prevents crash when tapping unloaded avatar/header images
2020-03-17 21:42:09 -04:00
3bbbb05083
Rename AttachmentsViewController to LoadingLargeImageViewController and
...
make non-specific to attachments
2020-03-17 21:24:15 -04:00
bd3e74c611
Remove unnecessary XIB
2020-03-17 21:07:44 -04:00
2e8c416e04
Merge gallery and large image animations
2020-03-17 21:05:45 -04:00
955f9e5916
Fix attachment descriptions not being set correctly
2020-03-17 21:03:29 -04:00
17f15db32d
Don't round bottom corners of asset picker
...
Corner radius doesn't match that used on 2019 iPad Pro, so rounding the
bottom corners results in the view controller beneath the asset picker
showing through in some split-screen configurations
2020-03-16 20:50:16 -04:00
1a11dd2a69
Present asset picker as popover in regular horizontal size class
2020-03-16 20:45:51 -04:00
b5fa0bceab
Fix pasting using compose app shortcut while app isn't running
2020-03-16 19:09:25 -04:00
bebf47f05c
Prevent incompatible items from being pasted on compose screen
2020-03-16 17:31:43 -04:00
e76b719c6a
Add context menu previews to explore VC
2020-03-15 23:54:04 -04:00
478c7b7a23
Fix crash when long-presing add attachment button
2020-03-15 22:59:43 -04:00
9ed05de3ee
Add compose attachments preview
2020-03-15 14:25:02 -04:00
64a8f6d733
Reorganize code
2020-03-15 11:43:41 -04:00
18e91feb00
Fix requires attachment descriptions preference not working
2020-03-15 11:39:35 -04:00
0691c3b9d6
Fix asset preview size
2020-03-14 23:32:54 -04:00
1ccb450477
Support dragging and dropping attachments in the compose view controller
...
Allos dragging in attachments from other apps and drag/dropping with the
compose VC to reorder attachments
2020-03-14 20:08:36 -04:00
7117ce6320
Support pasting images to create attachments
...
Closes #91
2020-03-14 16:46:50 -04:00
34dccf1f37
Extract compose attachments into separate VC
2020-03-14 15:47:15 -04:00
a3303dc8fb
Use same order for status and account preview actions
2020-03-11 22:54:38 -04:00
fadddeda7f
Fix crash when deleting draft
...
Closes #94
2020-03-11 22:18:31 -04:00
cd5b4c1145
Remove old code
2020-03-02 22:31:37 -05:00
c7746d3084
Add unknown notification fallback
...
Closes #90
2020-03-02 19:44:10 -05:00
315ea39682
Fix crash in silent action prefs
2020-03-02 19:44:10 -05:00
44fbbd6a80
Revert "Fix custom emojis in display namesnot showing in conversation main"
...
This reverts commit 73da828e7cec09bcfbe65295bbd2f02e3b719ff6.
Fixes #89
2020-03-02 19:44:10 -05:00
de02c73957
Fix custom emojis in display namesnot showing in conversation main
...
statuses
Caused by the cell updating it's UI multiple times in quick succession.
As a workaround, prevent the main cell from being reloaded.
2020-03-02 19:44:10 -05:00
2cebb6bd7d
Show custom emojis in display names (where possible)
2020-03-02 19:44:09 -05:00
53707593a6
Show custom emojis in display names (where possible)
2020-03-01 19:40:32 -05:00
af821081b0
Temporary fix for crash that occurs when switching accounts immediately
...
after adding a new one
2020-02-29 17:36:54 -05:00
804636dcbb
Don't show warning when loading draft on top of for empty statuses
...
Closes #87
2020-02-28 19:50:04 -05:00
d9bae42f81
Prevent empty drafts from being saved
2020-02-22 15:43:17 -05:00
a814ee37cc
Update SheetController
...
Fixes image picker losing velocity during dismiss animation
2020-02-22 15:29:42 -05:00
1a8e84f5fa
Reorganize behavior preferences
2020-02-22 13:19:31 -05:00
1f56823a17
Add preference to disable gif animation in timelines
2020-02-22 13:12:28 -05:00
65d57df949
Add interacting pushing to navigation controllers
...
Allows people to move forward in the navigation stack after popping
(making popping a non-destructive action).
2020-02-19 22:07:12 -05:00
d7953470e3
Add rudimentary support for audio attachments
...
Closes #7
2020-01-26 18:50:45 -05:00
8c7bebcce8
Fix large image controls being positioned incorrectly on notched-devices
...
when opening via a context menu preview.
The constraints for the top controls were being set only once, but when
showing a large image in the contxt menu preview window, the top inset
safe area is 0 and didn't become 44 (the value for notched devices)
until the preview was expanded.
Fixes #86
2020-01-26 18:28:46 -05:00
20c602f911
Disable row insertion animations
2020-01-26 18:23:18 -05:00
f2e08e96f3
Improve large image/gallery animation handling when images aren't loaded
2020-01-25 22:29:12 -05:00
d1913d7e69
Change white background when loading attachment to black
2020-01-25 22:09:00 -05:00
26c99a1a35
Improve scroll perform when loading new rows into table views
...
Instead of reloading the whole table view, only insert the rows for
statuses/notifications that were added.
2020-01-25 11:11:48 -05:00
6757031dcb
Hide context menus and swipe actions on instance public timelines
2020-01-25 10:44:31 -05:00
81256b7a96
Only show local posts on public instance timelines
2020-01-25 10:37:22 -05:00
d6ae51c02f
Improve ImageCache loading
...
Keep track of the number of requests and only cancel the underlying
URLSessionTask if there are no concrete requsts remaining.
Closes #81
2020-01-25 10:30:04 -05:00
4abda02b76
Only show drafts from current account
2020-01-22 22:27:58 -05:00
59277ec64f
Change drafts to store which accounts was used to create them
...
When loading a draft:
If the draft was created from a different account than the current one:
If the draft was in reply to a status, don't allow it to be loaded.
If the draft was not in reply to a status, prompt the user whether
or not to load the draft.
If the draft was in reply to a different status than the current one:
Prompt the user whether or not to load the draft.
Otherwise, load the draft.
Draft replies created from other accounts can't be loaded from different
accounts because the status for inReplyToID of the draft will have a
different instance-local ID if the two accounts are on different
instances.
See #16
2020-01-20 15:26:25 -05:00
08086f1b18
Fix compose reply view missing MastodonController instance
2020-01-20 15:25:23 -05:00
12b6623113
Merge branch 'master' into multiple-accounts
2020-01-20 12:16:11 -05:00
ff97b0f76d
Change saved hashtags/instances to be per-account
...
See #16
2020-01-20 11:48:47 -05:00
26f1aafa15
Unify SavedHashtagsManager and SavedInstancesManager
2020-01-20 11:20:39 -05:00
c99a724bf3
Fix instance public timelines crashing
...
The instance timeline controller needs to store a strong reference to
the instance-specific MastodonController since the timeline VC only
holds a weak reference, and unlike normal screens, the scene session
doesn't hold onto the MastodonController for other instances.
2020-01-20 11:18:55 -05:00
f7421d83ef
Add preference to mention reblogger when replying to a reblogged status
2020-01-19 23:48:36 -05:00
7934bc15ac
Split Composing prefs into Composing and Replying
2020-01-19 23:23:31 -05:00
3aa5aa1bc0
Fix weird crashes when switching accounts
2020-01-19 23:16:36 -05:00
32e89f2c16
Fix retain cycles with TuskerNavigationDelegate
...
TuskerNavigationDelegate is now class-bound and only weak references to
it are stored.
2020-01-19 23:02:07 -05:00
c45dd99088
Clean up account switching code
2020-01-19 11:52:06 -05:00
863867c522
Add logging in to additional accounts and switching accounts via Preferences
...
See #16
2020-01-18 22:45:06 -05:00
6421d4dc12
Merge branch 'master' into multiple-accounts
2020-01-18 18:56:36 -05:00
23de131290
Add preference to require attachment descriptions before posting
...
Closes #76
2020-01-17 21:55:21 -05:00
8178a1f339
Fix crash when tapping more actions buttons on iPad
...
Fixes #78
2020-01-17 21:29:53 -05:00
53702a8324
Add pinned status refreshing
...
Closes #82
2020-01-17 21:13:17 -05:00
bb86e1aafd
Allow rotaion in the attachment gallery
...
Closes #77
2020-01-07 22:19:38 -05:00
db4312ee34
Fix refreshing multiple times with no new data not working
...
When the requested range has no results, no pagination data is returned,
so the existing `newer` request range is replaced with nil. As there
was no new data, the existing request range is still correct and should
not be replaced.
Fixes #75
2020-01-07 21:54:19 -05:00
3928b2e88a
Store an array of logged-in accounts internally, get the active
...
MastodonController from the current UIScene
See #16
2020-01-07 21:29:15 -05:00
ec2062ad42
Fix not being able to sign into Mastodon instances not in the
...
recommended list
2020-01-06 22:14:17 -05:00
0255483f97
Make MastodonCache specific to each API controller
...
See #16
2020-01-05 19:54:28 -05:00
e3be424f5a
Fix instance public timelines not loading
2020-01-05 19:45:12 -05:00
2bdcb9b7f8
Replace global shared MastodonController instance with (mostly)
...
dependency injection
The places still using the .shared property are cases where there is no
view controller from which to (easily) get the appropriate instance,
such as user activity and X-Callback-URL handling. These uses will need
to be revisited once there are multiple MastodonControllers.
See #16
2020-01-05 15:25:07 -05:00
a18bcac8b8
Pachyderm: Change Client request methods to be static, like all other
...
models
Tusker: Add run method to MastodonController and no-longer expose API
client object
2020-01-05 14:00:39 -05:00
ad09e36907
Show follow requsts in notifications w/ accept/reject buttons
...
Closes #64
2020-01-04 23:13:23 -05:00
c31916d67e
Remove references to old images
2020-01-04 23:04:45 -05:00
3ecbb1895c
Replace GMImagePicker with custom asset picker based on SheetController
...
Fixes #23
Closes #50
2020-01-04 16:25:15 -05:00
b2956b6118
Convert HEIC images to JPEG before upload
...
Fixes #60
2019-12-31 16:41:56 -05:00
6ef643e374
Fix custom instances not showing up when typed into the instance
...
selector search field
With Combine Cancellables are automatically cancelled on deinit, so the
instance selector needs to hold on to a reference to pipeline
cancellable for its lifetime, otherwise it's cancelled immediately after
creation.
Closes #59
2019-12-31 11:45:34 -05:00
18c3c3c434
More UI testing setup and API mocks
2019-12-31 11:40:56 -05:00
b9e359ba83
Fix custom instance domains not being parsed correctly
2019-12-31 00:13:09 -05:00
edb86fc503
Add theme toggle separate from system appearance
...
Closes #67
2019-12-31 00:12:18 -05:00
49f58cf955
Initial UI testing setup
2019-12-30 16:00:14 -05:00
377b5f5c85
Add ability to save and view instance public timelines
2019-12-19 22:55:41 -05:00
f92a2acc97
Show list edit screen immediately upon creation
2019-12-19 21:37:47 -05:00
ae6a0513e4
Add local saved hashtags
...
Closes #66
2019-12-19 21:20:29 -05:00
afc2bfcf6b
Add list editing
2019-12-17 22:56:53 -05:00
76a7c5bdf8
Add list deletion
2019-12-17 21:40:08 -05:00
19f15d8fa9
Add list creation
2019-12-17 21:18:32 -05:00
270cbc2a6c
Add lists to Explore tab
...
Closes #63
2019-12-17 21:10:30 -05:00
036791bd39
Replace Search tab with Explore tab
...
- Search controller (functionally the same, presents results on top of
explore menu)
- Add bookmarks screen
See #63
2019-12-17 00:22:25 -05:00
382decd7da
Fix search section titles
2019-12-16 22:23:12 -05:00
05d79d5d03
Use same nav delegate more options for context menu share sheet
2019-12-14 13:36:05 -05:00
eb6cfba9aa
Fix tablel view cells being re-selected on aborted nav swipe back
2019-12-14 11:59:31 -05:00
0c78af7d4f
Store in reply to status in drafts
2019-12-14 11:30:35 -05:00
681cdb8bb5
Fix automatically created drafts not being deleted after successful post
...
The newly created draft needs to be set to the compose VC's currentDraft
so that it gets removed after the status is successfully created.
Also, save the drafts to disk after saving a draft so that crashes don't
cause draft loss.
2019-11-28 22:26:37 -05:00
06442b5629
Fix controls in large image/gallery not hiding/showing on zoom
...
Closes #58
2019-11-28 21:51:24 -05:00
7140590ccf
Fix covnerstaion expand/collapse button not working on all statuses
2019-11-28 18:58:47 -05:00
b47b08fa95
Store status collapse state in containing view controller
...
Also, copy the state between screens, so e.g. expanding a status in the
timeline and then opening that conversation already has that status
expanded.
This intentionally doesn't store the sensitive attachment visibility
state, since showing text when not necessary is less dangerous than for
images. (Possibly a preference for this in the future?)
Closes #55
2019-11-28 18:36:58 -05:00
24a1e7ceb9
Unify most of TimelineStatus and ConverastionMainStatus cell code
...
Closes #54
2019-11-19 12:08:11 -05:00
8fb3b211b6
Add button to conversation table view to collapse/expand all posts
...
This needs a refactor once StatusTableViewCell and
ConversationMainStatusTableViewCell are merged. See #54
2019-11-18 22:28:47 -05:00
da6ff67a51
Add notification dismissal context menu actions
...
Closes #49
This is a workaround for UIKit's built-in suggested context menu actions
not working as expected, and should be replaced with the system thing if
it becomes possible.
2019-11-17 18:49:48 -05:00
a92d9ddc6f
Automatically collapse long (> 500 chars) statuses
...
Closes #12
2019-11-17 18:36:19 -05:00
d4fa2f36e3
Remove send message from profile share menu
2019-11-17 15:19:20 -05:00
150adeb581
Use custom navigation controller for preferences to override
...
viewWillDisappear method and send preferences changed notification
Workaround for #36
2019-11-17 14:31:07 -05:00
81a5fce602
Add preference to always blur media
2019-11-17 12:52:42 -05:00
c91a7baaa6
Show pinned posts on profiles
...
Closes #53
2019-11-17 11:14:33 -05:00
af65aa88e0
Don't use suggested actions in context menus
2019-11-17 10:19:50 -05:00
c85836eda6
Add preferences for using in-app vs out of app Safari and using Reader Mode for in-app
2019-11-14 19:53:27 -05:00
5076aec54e
Use ObservedObject for binding to prefs in SwiftUI instead of custom property wrappers
2019-11-14 19:53:00 -05:00
b4d41ac9b7
Fix crash in compose screen
2019-09-28 00:37:43 -04:00
1808aaa3e8
A bunch of VoiceOver/Voice Control stuff
2019-09-26 22:32:51 -04:00
adef4840de
Don't crash on login cancelled
2019-09-24 14:45:29 -04:00
682d68fd81
Change order of notification dismissal swipe action
2019-09-19 22:09:17 -04:00
d0c49144c4
Add notification dismissal swipe action
...
#49
2019-09-16 16:09:13 -04:00
911e73c78f
Add haptic feedback to switching segmented pages
2019-09-16 13:14:58 -04:00
65ceb83d2d
Add logout button to preferences
2019-09-16 13:12:23 -04:00
bc2e3c37a0
Add NSUserActivity for search
2019-09-15 21:20:50 -04:00
d08789bfab
Add NSUserActivity for checking mentions
2019-09-15 21:15:40 -04:00
9f818328ee
Cleanup user activity and XCB action handling code
2019-09-15 21:15:40 -04:00
32d6756762
Add NSUserActivity's for timelines
2019-09-15 21:15:40 -04:00
df8e0dedd4
Add instance selector
2019-09-15 15:01:35 -04:00
fc2aea04c3
Add hashtags to search
2019-09-14 21:24:43 -04:00
e121dd37b8
Add Search tab
...
Closes #31
2019-09-14 20:47:08 -04:00
dfb72edbd8
Fix opening context menu previews
...
Closes #43
2019-09-14 16:48:43 -04:00
d3e31541cf
Don't allow swiping in SegmentedPageViewController
2019-09-14 15:59:32 -04:00
88344c67e8
Merge timeline tabs
...
Closes #46
2019-09-14 15:59:32 -04:00
84a07fc718
Add preference to disable showing favorite/reblog counts
2019-09-14 15:00:52 -04:00
905b6a0a21
Add preference for default notifications display mode
2019-09-14 13:02:33 -04:00
8bb6e9403d
Add toggle to control whether Notifications tab shows all or just mentions
...
Closes #45
2019-09-14 12:04:20 -04:00
d52875cf25
Allow Pleroma instances to exceed Mastodon attachment limits
...
Closes #35
2019-09-11 16:57:42 -04:00
6e4f89df4a
Add support for video attachments
...
#7
2019-09-10 12:25:50 -04:00