Shadowfacts
d4bf289716
Fx more actions not workign
2020-05-14 22:43:37 -04:00
Shadowfacts
2eaeaf3277
Fix previewing gifv attacments
2020-05-13 21:20:22 -04:00
Shadowfacts
d396eb0823
Change background CoreData context to be a child of the main context so
...
that updates on the background context propogate up to the view context
on save
2020-05-13 19:49:35 -04:00
Shadowfacts
35a510e8ed
Add cache reset button to Advanced Preferences
2020-05-13 18:58:11 -04:00
Shadowfacts
0582812563
Remove strong references to MastodonController
2020-05-13 18:57:04 -04:00
Shadowfacts
e581f384e4
Fix account descriptions being squashed in the follows list
2020-05-12 22:24:51 -04:00
Shadowfacts
1c9b1b9ac3
Add support (sort of) for gifv attachments
...
See #98
2020-05-12 21:46:08 -04:00
Shadowfacts
82ad3b9fc4
Add reference counting for accounts
...
Closes #97
2020-05-11 22:03:17 -04:00
Shadowfacts
0a89dd3041
Don't double update accounts
...
Adding a status to the cache will also cache the status' account
2020-05-11 18:27:54 -04:00
Shadowfacts
40863ef130
Fix crash when opening more options for status in instance public timeline
2020-05-11 17:58:43 -04:00
Shadowfacts
cd78287a87
Fix crash when viewing instance public timelines
...
Use a CoreData in-memory store for public timelines.
2020-05-11 17:57:50 -04:00
Shadowfacts
04496aca1d
Apply avatar style to local account avatar images
2020-05-10 19:30:19 -04:00
Shadowfacts
5a098df931
Fix crash when searching
2020-05-10 15:47:50 -04:00
Shadowfacts
9812d4aff2
Prevent double-decrementing reference count for conversation main status
2020-05-10 15:08:45 -04:00
Shadowfacts
f4f2a5546c
Prevent race in status action account list
2020-05-10 15:04:22 -04:00
Shadowfacts
b220948e2b
Only initialize NSManagedObjectModel once
...
Prevents CoreData warnings when switching accounts and constructing a
second MastodonCachePersistentStore
2020-05-10 14:54:43 -04:00
Shadowfacts
866edc472d
Show avatar and instance domain in account list in Preferences
2020-05-10 14:54:20 -04:00
Shadowfacts
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
Shadowfacts
98529ca5af
Remove notifications from the bottom when scrolling up notifications list
2020-05-10 12:56:03 -04:00
Shadowfacts
6d8c5f632c
Fix scroll-to-top sometimes not scrolling all the way to the top
2020-05-10 12:56:01 -04:00
Shadowfacts
4fdafa893e
Add drawing attachments using PencilKit
2020-05-09 22:14:48 -04:00
Shadowfacts
9f75106706
Fix crash when opening statuses in Safari
2020-05-09 13:31:07 -04:00
Shadowfacts
bbd7d82620
Fix test in ContentTextView not being de-selectable
2020-05-07 21:46:59 -04:00
Shadowfacts
02088b1f55
Remove MastodonCache 🎉
2020-05-06 23:29:57 -04:00
Shadowfacts
1e41c8fa17
Remove MastodonCache usgae from XCBActions
2020-05-06 23:05:15 -04:00
Shadowfacts
ebbfc7a132
Fix race condition on loading notifications
2020-05-06 19:32:32 -04:00
Shadowfacts
aa625a41f5
Merge branch 'develop' into coredata
2020-05-06 19:18:58 -04:00
Shadowfacts
7fb92c9ce3
Prevent avatars in action notification group cell from overflowing
2020-05-06 19:18:47 -04:00
Shadowfacts
90bc9b91de
Add AccountProtocol and StatusProtocol
...
Provides a single interfaces for API and CoreData statuses and accounts
2020-05-06 18:40:12 -04:00
Shadowfacts
d6c506488b
Replace a bunch of MastodonCache uses with CoreData
2020-05-02 19:52:35 -04:00
Shadowfacts
5786c24846
Fix statuses/accounts updating
2020-05-02 12:45:28 -04:00
Shadowfacts
2cba168804
Fix account cells using old cache
2020-04-27 19:33:36 -04:00
Shadowfacts
49d00bb1b0
Fix swipe actions not showing up
2020-04-27 19:32:16 -04:00
Shadowfacts
ee5e049355
Use CoreData for bookmarks and search results
2020-04-27 19:25:41 -04:00
Shadowfacts
f53474ac90
Use CoreData for notifications screen
2020-04-27 19:20:09 -04:00
Shadowfacts
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
Shadowfacts
030bee1948
Convert conversation VC to use CoreData models
2020-04-13 22:51:15 -04:00
Shadowfacts
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
Shadowfacts
2c8ba878b7
Start converting UI to use CoreData backed objects instead of API
...
objects directly
2020-04-12 12:54:27 -04:00
Shadowfacts
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
Shadowfacts
102fe6ed91
Convert API objects to CoreData models and save them
2020-04-11 22:23:31 -04:00
Shadowfacts
7deb4fc5b4
Add LazilyDecoding for CoreData embedded objects
2020-04-11 15:35:00 -04:00
Shadowfacts
2a419eb87c
Add basic Status/Account CoreData model
2020-04-11 15:32:25 -04:00
Shadowfacts
fcab6818b0
Hide large image source view during expand/shrink animation
2020-03-25 23:10:48 -04:00
Shadowfacts
80cf1850dd
Add trackpad/magic mouse support for navigation controller interactive push gesture
2020-03-25 22:29:32 -04:00
Shadowfacts
e612964464
Allow scrolling w/ trackpad/magic mouse to dismiss gallery
2020-03-25 22:12:26 -04:00
Shadowfacts
49a437583e
Fix incorrect large image size during expand/shrink animation in some
...
cases
2020-03-25 22:09:00 -04:00
Shadowfacts
8a513186aa
Add pointer interactions status buttons and profile header more button
2020-03-24 23:02:40 -04:00
Shadowfacts
d9517047d7
Fix previewing video/audio attachments
2020-03-20 22:48:28 -04:00
Shadowfacts
bef3388fe8
Move attachment view corner radius to individual views
...
Masking the container makes context menu interactions look weird
2020-03-20 22:34:50 -04:00
Shadowfacts
2e8241d734
Move attachment context menu interaction to AttachmentView
2020-03-20 22:28:23 -04:00
Shadowfacts
c9c001d403
Improve attachment previewing
...
- Set correct preview size
- Don't show controls
2020-03-20 22:13:04 -04:00
Shadowfacts
4ce8de280e
Bump build number
2020-03-17 21:58:14 -04:00
Shadowfacts
4018d39312
Fix double gestures in attachments gallery
2020-03-17 21:56:29 -04:00
Shadowfacts
ae416bb604
Prevent crash if BaseStatusTableViewCell is leaked
...
If prefernces change and the the view controller the cell belongs to is dealloced, the
mastodonController will be nil, previously causing a crash.
2020-03-17 21:44:06 -04:00
Shadowfacts
5e9caf9179
Use LoadingLargeImageViewController for account avatar/header
...
Prevents crash when tapping unloaded avatar/header images
2020-03-17 21:42:09 -04:00
Shadowfacts
3bbbb05083
Rename AttachmentsViewController to LoadingLargeImageViewController and
...
make non-specific to attachments
2020-03-17 21:24:15 -04:00
Shadowfacts
bd3e74c611
Remove unnecessary XIB
2020-03-17 21:07:44 -04:00
Shadowfacts
2e8c416e04
Merge gallery and large image animations
2020-03-17 21:05:45 -04:00
Shadowfacts
955f9e5916
Fix attachment descriptions not being set correctly
2020-03-17 21:03:29 -04:00
Shadowfacts
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
Shadowfacts
1a11dd2a69
Present asset picker as popover in regular horizontal size class
2020-03-16 20:45:51 -04:00
Shadowfacts
b5fa0bceab
Fix pasting using compose app shortcut while app isn't running
2020-03-16 19:09:25 -04:00
Shadowfacts
c224d11417
Allow pasting and drag/dropping video attachments on compose screen
2020-03-16 19:05:58 -04:00
Shadowfacts
bebf47f05c
Prevent incompatible items from being pasted on compose screen
2020-03-16 17:31:43 -04:00
Shadowfacts
e76b719c6a
Add context menu previews to explore VC
2020-03-15 23:54:04 -04:00
Shadowfacts
478c7b7a23
Fix crash when long-presing add attachment button
2020-03-15 22:59:43 -04:00
Shadowfacts
9ed05de3ee
Add compose attachments preview
2020-03-15 14:25:02 -04:00
Shadowfacts
64f41ea2b7
Fix crash when updating timeline status cell timestamp
2020-03-15 12:17:19 -04:00
Shadowfacts
9af4118dfc
Show truncated note in account cell
2020-03-15 11:56:41 -04:00
Shadowfacts
64a8f6d733
Reorganize code
2020-03-15 11:43:41 -04:00
Shadowfacts
ca76568c79
Remove old code
2020-03-15 11:40:28 -04:00
Shadowfacts
18e91feb00
Fix requires attachment descriptions preference not working
2020-03-15 11:39:35 -04:00
Shadowfacts
c5d2e9af68
Fix preferences/drafts not saving on iPad in some circumstances
2020-03-15 11:26:30 -04:00
Shadowfacts
0691c3b9d6
Fix asset preview size
2020-03-14 23:32:54 -04:00
Shadowfacts
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
Shadowfacts
7117ce6320
Support pasting images to create attachments
...
Closes #91
2020-03-14 16:46:50 -04:00
Shadowfacts
34dccf1f37
Extract compose attachments into separate VC
2020-03-14 15:47:15 -04:00
Shadowfacts
a3303dc8fb
Use same order for status and account preview actions
2020-03-11 22:54:38 -04:00
Shadowfacts
d15fa2199e
Fix attachments container more view not beign removed on cell reuse
...
Closes #92
2020-03-11 22:49:53 -04:00
Shadowfacts
fadddeda7f
Fix crash when deleting draft
...
Closes #94
2020-03-11 22:18:31 -04:00
Shadowfacts
b232bec80f
Show custom emojis in content warnings
...
Closes #95
2020-03-11 21:56:35 -04:00
Shadowfacts
cd5b4c1145
Remove old code
2020-03-02 22:31:37 -05:00
Shadowfacts
c7746d3084
Add unknown notification fallback
...
Closes #90
2020-03-02 19:44:10 -05:00
Shadowfacts
315ea39682
Fix crash in silent action prefs
2020-03-02 19:44:10 -05:00
Shadowfacts
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
Shadowfacts
fa4b5d3542
Fix custom emojis not being shown in display names when scrolling
...
quickly
If the emojiIdentifier didn't change, the emojis wouldn't be re-added
even after the text had been reset.
2020-03-02 19:44:10 -05:00
Shadowfacts
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
Shadowfacts
2cebb6bd7d
Show custom emojis in display names (where possible)
2020-03-02 19:44:09 -05:00
Shadowfacts
53707593a6
Show custom emojis in display names (where possible)
2020-03-01 19:40:32 -05:00
Shadowfacts
244659c262
Fix intermittent crash
...
If a status in a conversation view controller creates a work item to
update the timestamp in 1 minute, but the view controller is deinit'd
before that time elapses, the mastodonController instance will be nil,
resulting in a crash.
The DispatchWorkItems's are cancelled by the respective cell deinit
methods. But if the work item has already begun, cancelling it has no
effect, potentially leading to a crash in the conditions described above
are true. Using a weak reference to self fixes this.
Additionally, don't unnecessarily recreate the work items every time.
They don't capture any local variables, only self, so nothing changes.
2020-03-01 18:33:44 -05:00
Shadowfacts
d4ca39761e
Change version, disable UI test web server temporarily
2020-03-01 18:23:10 -05:00
Shadowfacts
f87944b47e
Add app icon
2020-03-01 13:11:09 -05:00
Shadowfacts
af821081b0
Temporary fix for crash that occurs when switching accounts immediately
...
after adding a new one
2020-02-29 17:36:54 -05:00
Shadowfacts
804636dcbb
Don't show warning when loading draft on top of for empty statuses
...
Closes #87
2020-02-28 19:50:04 -05:00
Shadowfacts
5bed38f661
Show gallery instead of large image when previewing status attachments
...
Fixes crash when attempting to preview audio/video attachments
2020-02-28 19:47:38 -05:00
Shadowfacts
56de0ab359
Update profile header to always reflect most recently cached data
2020-02-28 19:47:31 -05:00
Shadowfacts
387623a309
Remove old code
2020-02-28 19:24:14 -05:00
Shadowfacts
d9bae42f81
Prevent empty drafts from being saved
2020-02-22 15:43:17 -05:00
Shadowfacts
a814ee37cc
Update SheetController
...
Fixes image picker losing velocity during dismiss animation
2020-02-22 15:29:42 -05:00
Shadowfacts
1a8e84f5fa
Reorganize behavior preferences
2020-02-22 13:19:31 -05:00
Shadowfacts
1f56823a17
Add preference to disable gif animation in timelines
2020-02-22 13:12:28 -05:00
Shadowfacts
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
Shadowfacts
8be7480755
Change bundle identifier and signing account
2020-02-08 17:54:04 -05:00
Shadowfacts
d7953470e3
Add rudimentary support for audio attachments
...
Closes #7
2020-01-26 18:50:45 -05:00
Shadowfacts
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
Shadowfacts
20c602f911
Disable row insertion animations
2020-01-26 18:23:18 -05:00
Shadowfacts
f2e08e96f3
Improve large image/gallery animation handling when images aren't loaded
2020-01-25 22:29:12 -05:00
Shadowfacts
d1913d7e69
Change white background when loading attachment to black
2020-01-25 22:09:00 -05:00
Shadowfacts
f9a62ec3f3
Fix crash when tapping unloaded image attachment
2020-01-25 22:03:21 -05:00
Shadowfacts
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
Shadowfacts
6757031dcb
Hide context menus and swipe actions on instance public timelines
2020-01-25 10:44:31 -05:00
Shadowfacts
7c207efa07
Tweak More swipe action to be in-line with system appearance
2020-01-25 10:44:12 -05:00
Shadowfacts
81256b7a96
Only show local posts on public instance timelines
2020-01-25 10:37:22 -05:00
Shadowfacts
5a6c12c5a7
Fix missing context menu actions on follow notifications for only one person
2020-01-25 10:30:04 -05:00
Shadowfacts
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
Shadowfacts
62408fc4bd
Merge branch 'master' into multiple-accounts
2020-01-22 22:30:30 -05:00
Shadowfacts
1d169bec67
Fix statuses showing incorrect timestamps when switching accounts
2020-01-22 22:30:05 -05:00
Shadowfacts
4abda02b76
Only show drafts from current account
2020-01-22 22:27:58 -05:00
Shadowfacts
e9db3fa0ac
Collapse whitespace according to CSS spec after converting HTML to
...
attributed string
Fixes #27
2020-01-21 21:28:14 -05:00
Shadowfacts
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
Shadowfacts
08086f1b18
Fix compose reply view missing MastodonController instance
2020-01-20 15:25:23 -05:00
Shadowfacts
12b6623113
Merge branch 'master' into multiple-accounts
2020-01-20 12:16:11 -05:00
Shadowfacts
79f44c9b58
Change recommended instance selector to store categories as strings
...
instead of enum
Additional categories can be added, which would cause a crash when
decoding.
As the category isn't used for anything, storing it as an enum value is
not necessary.
2020-01-20 11:56:43 -05:00
Shadowfacts
ff97b0f76d
Change saved hashtags/instances to be per-account
...
See #16
2020-01-20 11:48:47 -05:00
Shadowfacts
26f1aafa15
Unify SavedHashtagsManager and SavedInstancesManager
2020-01-20 11:20:39 -05:00
Shadowfacts
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
Shadowfacts
f7421d83ef
Add preference to mention reblogger when replying to a reblogged status
2020-01-19 23:48:36 -05:00
Shadowfacts
7934bc15ac
Split Composing prefs into Composing and Replying
2020-01-19 23:23:31 -05:00
Shadowfacts
3aa5aa1bc0
Fix weird crashes when switching accounts
2020-01-19 23:16:36 -05:00
Shadowfacts
ee252c02e9
Fix retain cycle in timeline cell cache observers
...
The use an unowned reference to self because when the cell is deinit'd,
the Combine observers will be cancelled.
2020-01-19 23:14:51 -05:00
Shadowfacts
2f630f2f8f
Fix retain cycle between MastodonController/MastodonCache
...
The cache should only store a weak reference to the controller, so that
when the controller is deinit'd the cache is as well.
2020-01-19 23:14:13 -05:00
Shadowfacts
8eb6f6f573
Fix retain cycle in timestamp updating code
...
The timestamp update work item shouldn't retain a reference to the cell.
It can be unowned because when the cell is deinit'd, the work item will
be cancelled.
2020-01-19 23:10:52 -05:00
Shadowfacts
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
Shadowfacts
c45dd99088
Clean up account switching code
2020-01-19 11:52:06 -05:00
Shadowfacts
863867c522
Add logging in to additional accounts and switching accounts via Preferences
...
See #16
2020-01-18 22:45:06 -05:00
Shadowfacts
08c84688cf
Change recommended instance selector to store categories as strings
...
instead of enum
Additional categories can be added, which would cause a crash when
decoding.
As the category isn't used for anything, storing it as an enum value is
not necessary.
2020-01-18 22:42:20 -05:00
Shadowfacts
66fe861442
Merge branch 'master' into multiple-accounts
2020-01-18 19:33:01 -05:00
Shadowfacts
11f9642cba
Actually fix link interaction
2020-01-18 19:32:39 -05:00
Shadowfacts
6421d4dc12
Merge branch 'master' into multiple-accounts
2020-01-18 18:56:36 -05:00
Shadowfacts
38085eee37
Fix not being able to collapse/expand statuses
...
Instead of simply returning the content text view from hitTest(_:with:),
we need to call the super method so that the system still performs its
own checks.
2020-01-18 18:38:00 -05:00
Shadowfacts
e19364abdf
Fix content text view text color in dark mode
2020-01-18 18:21:01 -05:00
Shadowfacts
fa358a3e97
Remove xtra padding from content text view
2020-01-18 16:27:18 -05:00
Shadowfacts
5d86b35672
Enable text selection in conversation main status
2020-01-18 16:18:32 -05:00
Shadowfacts
784c71342d
Fix preformatted text not being displayed correctly
2020-01-18 16:05:44 -05:00
Shadowfacts
b5a41badcc
Replace content labels with text views
...
UITextView uses TextKit internally, unlike UILabel, so no additional
code is needed to keep the TextKit and view representations of the text
in sync since they are one and the same. This means that detecting which
character was tapped in a content text view is much more accurate, which
means link handling is substantially imrpoved.
Fixes #20
2020-01-18 16:05:00 -05:00
Shadowfacts
23de131290
Add preference to require attachment descriptions before posting
...
Closes #76
2020-01-17 21:55:21 -05:00
Shadowfacts
8178a1f339
Fix crash when tapping more actions buttons on iPad
...
Fixes #78
2020-01-17 21:29:53 -05:00
Shadowfacts
53702a8324
Add pinned status refreshing
...
Closes #82
2020-01-17 21:13:17 -05:00
Shadowfacts
bb86e1aafd
Allow rotaion in the attachment gallery
...
Closes #77
2020-01-07 22:19:38 -05:00