Commit graph

17317 commits

Author SHA1 Message Date
Morgan Pretty 7d47a36f9f Merge remote-tracking branch 'upstream/dev' into feature/updated-user-config-handling
# Conflicts:
#	Session/Conversations/ConversationVC+Interaction.swift
#	Session/Conversations/Settings/ThreadSettingsViewModel.swift
#	Session/Home/Message Requests/MessageRequestsViewController.swift
#	Session/Shared/Views/SessionAvatarCell.swift
#	SessionMessagingKit/Sending & Receiving/Message Handling/MessageReceiver+ClosedGroups.swift
#	SessionMessagingKit/Sending & Receiving/MessageSender.swift
2023-03-06 18:02:26 +11:00
Morgan Pretty 499b20db6d Fixed a couple of bugs found during testing
Removed image dimension byte checking for attachments (we have file size checks already)
Fixed a couple of bugs where the message status for uploading attachments wasn't reflecting the current status
Fixed a bug where the conversation 'jump to bottom' was jumping to the bottom of the current page instead of to the end of the conversation
2023-03-06 17:53:30 +11:00
Ryan Zhao b0cdce8acf Merge branch 'dev' into conversation-swipe-actions 2023-03-06 16:44:56 +11:00
Ryan Zhao 037c88395b Merge branch 'dev' into switch-video-view 2023-03-06 16:13:57 +11:00
Ryan Zhao 2f909fbb55 Merge branch 'dev' into message-and-image-info 2023-03-06 16:13:43 +11:00
Ryan Zhao 1b744e9bc2 Merge branch 'dev' into conversation-swap-action 2023-03-06 16:13:27 +11:00
Ryan Zhao 37962fa071 update build number 2023-03-06 16:13:08 +11:00
Ryan Zhao 779e199d7d update build number 2023-03-06 15:53:26 +11:00
RyanZhao f7a0780650
Merge pull request #800 from RyanRory/bug-fixes-2.2.8
Bug fixes on 2.2.8
2023-03-06 15:52:07 +11:00
Ryan Zhao 00d5d08152 fix retry action will end up with sending the same interaction twice 2023-03-06 15:31:04 +11:00
Morgan Pretty e28b4b4531 Fixed a number of bugs with the config handling
Added a number of feature flag checks to config updates
Added legacy group disappearing message timer handling
Updated the string linter to clean up the build logs a little
Split the initial config dump generation into it's own migration so it can run the launch after the feature flag is toggled
Fixed a few issues with the initial config dump creation
Fixed an issue where "shadow" conversations would be left in the database by opening a thread and never sending a message
Fixed a bug where duplicate members could be added to legacy groups
Fixed a bug with using animated images for the avatar
Fixed a bug where avatar images which were already on disk could be re-downloaded
2023-03-06 15:20:15 +11:00
Ryan Zhao 3aacf27b79 regenerate the quoted attachment thumbnail when retrying to send the message 2023-03-06 14:33:24 +11:00
Morgan Pretty 7ee84fe0d3 Cleaned up a bunch of code, added pinned and hidden handling
Added in logic to handle the 'hidden' state
Replaced the 'Group Created' message with an empty state
Cleaned up a bunch of boilerplate code
2023-03-02 17:52:37 +11:00
ryanzhao 84ea821095 WIP: fix quote when retrying sending a message 2023-03-02 17:05:26 +11:00
ryanzhao 36ed8802bb don't include the attachment when quoted if the attachment is not downloaded 2023-03-02 16:17:58 +11:00
Morgan Pretty 8eed08b5b4 Updated to the latest lib, started handling UserGroups
Added unit tests for the UserGroup config type
Updated the logic to use the 'pinnedPriority' and deprecated 'isPinned' (not sorting yet but using the value)
Updated the code to use the libSession community url parsing instead of custom parsing
Fixed an issue where initialising Data with a libSession value wasn't returning null when the data had no actual value
Fixed an issue where the OpenGroupPoller could user an incorrect failure could when handling poll responses
Fixed the UpdateExpiryRequest signature
2023-02-28 17:23:56 +11:00
ryanzhao 05c4393c82 fix an issue where a member leaving a group will make other member's group not working 2023-02-28 15:02:36 +11:00
ryanzhao f8dc2ddfb8 fix incorrect closed group leaving warning for members and admins 2023-02-28 14:25:15 +11:00
Ryan Zhao a0ba1484f5 fix an edge case of showing 'original message not found' incorrectly 2023-02-27 17:16:38 +11:00
Ryan Zhao cd3c1ee043 fix attachment description 2023-02-27 16:54:54 +11:00
Ryan Zhao 900a97bd8c fix incorrect icon colour in draft quote 2023-02-27 16:46:47 +11:00
Ryan Zhao 612be697ef feat: swap action leave/delete, pin, mute/unmute, mark read/unread 2023-02-27 15:42:48 +11:00
Ryan Zhao 2aee7b8c05 Merge branch 'dev' into conversation-swap-action 2023-02-27 11:40:49 +11:00
Ryan Zhao 9d11cf87e0 update build number 2023-02-27 11:38:01 +11:00
Ryan Zhao 9112231f66 WIP 2023-02-27 11:37:25 +11:00
RyanZhao 034988b4a7
Merge pull request #797 from burtonemily/accessibility_ids_3
Accessibility ids 3
2023-02-27 11:37:05 +11:00
RyanZhao 750dd41bea
Update Session.xcscheme 2023-02-27 11:36:43 +11:00
RyanZhao 2abc4f380d
Update LintLocalizableStrings.swift 2023-02-27 11:36:06 +11:00
RyanZhao 04ac337539
Update project.pbxproj 2023-02-27 11:35:41 +11:00
RyanZhao 5e041ddb41
Update LintLocalizableStrings.swift 2023-02-27 11:34:39 +11:00
RyanZhao 1791d7ebf2
Merge branch 'dev' into accessibility_ids_3 2023-02-27 11:32:11 +11:00
Ryan Zhao b2fcf48c73 Merge branch 'dev' into switch-video-view 2023-02-27 10:03:42 +11:00
Ryan Zhao bf5f927ad0 Merge branch 'dev' into message-and-image-info 2023-02-27 10:03:34 +11:00
ryanzhao b3378992ed WIP: feat: modify conversation swap actions 2023-02-24 17:03:45 +11:00
Morgan Pretty 64e6dd4b95
Merge pull request #796 from mpretty-cyro/fix/action-sheet-crash
Fixed a couple of action sheets which could crash on iPad
2023-02-24 11:22:34 +11:00
Morgan Pretty 6851bb25fc Fixed a wrong variable name 2023-02-24 11:19:28 +11:00
Morgan Pretty bead5ca1e6 Fixed a couple of action sheets which could crash on iPad 2023-02-24 11:12:41 +11:00
Ryan Zhao 52ba016b80 bump up version & build number 2023-02-23 15:06:41 +11:00
RyanZhao 98fd315661
Merge pull request #794 from RyanRory/fix-database-reentrance
Fix a crash caused by database write method reentrance
2023-02-23 15:04:30 +11:00
Ryan Zhao c9b9400e9e fix a crash caused by database write method reentrance 2023-02-23 14:40:10 +11:00
Morgan Pretty ff36b3eeab Resolved a number of TODOs and a couple of crashes
Updated the logic to always fetch all config messages (and not de-dupe them)
Updated the onboarding to fallback to fetch the legacy config if the there is no updated user config
Added sorting to config message processing to reduce the turn-around time for certain edge-cases to resolve
Removed some redundant code
Fixed a database re-entrancy crash
Fixed a crash when merging config messages
Fixed an issue which could occur by registering too many 'afterTransaction' closures
2023-02-21 17:10:02 +11:00
RyanZhao 4404dda331
Merge pull request #793 from mpretty-cyro/fix/early-push-registration
Fixed an incorrect push registration
2023-02-21 16:07:55 +11:00
Morgan Pretty 84daff6e3d Fixed an incorrect push registration 2023-02-21 16:05:46 +11:00
Morgan Pretty 742c4a161f Merge remote-tracking branch 'upstream/dev' into feature/updated-user-config-handling
# Conflicts:
#	Session.xcodeproj/project.pbxproj
#	Session/Conversations/ConversationVC+Interaction.swift
#	Session/Conversations/ConversationViewModel.swift
#	Session/Media Viewing & Editing/GIFs/GifPickerViewController.swift
#	Session/Media Viewing & Editing/GIFs/GiphyAPI.swift
#	Session/Meta/Translations/de.lproj/Localizable.strings
#	Session/Meta/Translations/en.lproj/Localizable.strings
#	Session/Meta/Translations/es.lproj/Localizable.strings
#	Session/Meta/Translations/fa.lproj/Localizable.strings
#	Session/Meta/Translations/fi.lproj/Localizable.strings
#	Session/Meta/Translations/fr.lproj/Localizable.strings
#	Session/Meta/Translations/hi.lproj/Localizable.strings
#	Session/Meta/Translations/hr.lproj/Localizable.strings
#	Session/Meta/Translations/id-ID.lproj/Localizable.strings
#	Session/Meta/Translations/it.lproj/Localizable.strings
#	Session/Meta/Translations/ja.lproj/Localizable.strings
#	Session/Meta/Translations/nl.lproj/Localizable.strings
#	Session/Meta/Translations/pl.lproj/Localizable.strings
#	Session/Meta/Translations/pt_BR.lproj/Localizable.strings
#	Session/Meta/Translations/ru.lproj/Localizable.strings
#	Session/Meta/Translations/si.lproj/Localizable.strings
#	Session/Meta/Translations/sk.lproj/Localizable.strings
#	Session/Meta/Translations/sv.lproj/Localizable.strings
#	Session/Meta/Translations/th.lproj/Localizable.strings
#	Session/Meta/Translations/vi-VN.lproj/Localizable.strings
#	Session/Meta/Translations/zh-Hant.lproj/Localizable.strings
#	Session/Meta/Translations/zh_CN.lproj/Localizable.strings
#	Session/Notifications/AppNotifications.swift
#	Session/Notifications/SyncPushTokensJob.swift
#	Session/Notifications/UserNotificationsAdaptee.swift
#	SessionMessagingKit/Configuration.swift
#	SessionMessagingKit/Database/Models/Interaction.swift
#	SessionMessagingKit/Database/Models/SessionThread.swift
#	SessionMessagingKit/Jobs/Types/MessageReceiveJob.swift
#	SessionMessagingKit/Jobs/Types/MessageSendJob.swift
#	SessionMessagingKit/Jobs/Types/SendReadReceiptsJob.swift
#	SessionMessagingKit/Messages/Message.swift
#	SessionMessagingKit/Sending & Receiving/Message Handling/MessageReceiver+ReadReceipts.swift
#	SessionMessagingKit/Sending & Receiving/MessageSender+Convenience.swift
#	SessionMessagingKit/Sending & Receiving/MessageSender.swift
#	SessionMessagingKit/Shared Models/MentionInfo.swift
2023-02-21 11:11:06 +11:00
Morgan Pretty c8a199a8ba Fixed the remaining broken tests 2023-02-21 09:55:21 +11:00
Morgan Pretty f30b383bb8 Updated to the latest version of libSession-util
Updated the SharedConfigMessage type to have a TTL of 30 days
Updated the SnodeAPI to have a 'poll' method to be more consistent with the OpenGroupAPI (it also does multiple things now so is cleaner)
Added logic to limit the number of config messages to be retrieved per poll
Added the 'ValidatableResponse' protocol to standardise SnodeAPI response validation
Added the libSession version to the logs
Fixed an issue where the user profile pic wouldn't get synced correctly due to memory going out of scope
Fixed some threading issues
Refactored the thread variants to follow the updated terminology (will think about refactoring other code areas later)
Cleaned up the Combine error handling
Started fixing broken unit tests
2023-02-20 12:56:48 +11:00
RyanZhao ae6f609b41
Merge pull request #785 from RyanRory/fix-quoting-in-community-chats
Fix quoting in community chats
2023-02-20 10:05:32 +11:00
Ryan Zhao a14a99896b Merge branch 'dev' into switch-video-view 2023-02-20 10:02:18 +11:00
Ryan Zhao aca587be17 Merge branch 'dev' into fix-quoting-in-community-chats 2023-02-20 10:02:08 +11:00
Morgan Pretty e0f9be082a
Merge pull request #791 from mpretty-cyro/feature/pin-note-to-self-in-share-extension
Update the share extension to always show 'Note to Self' first
2023-02-20 08:45:56 +11:00