Commit graph

16791 commits

Author SHA1 Message Date
Morgan Pretty
301ae76b0f Updated the OpenGroupAPI to always use authentication and default to blinded when no capabilities are present 2022-10-24 15:24:46 +11:00
Morgan Pretty
1b350cf422 Fixed a number of crashes
Consolidated the PagedDatabaseObserver updating logic into a static function (can be improved further in the future)
Added defensive coding to prevent the LinkDeviceVC from crashing when the nav controller doesn't exist
Fixed an issue where the 'Permissions' callbacks were doing UI logic on background threads
Fixed an issue where the 'reloadCurrent' load type for the PagedDatabaseObserver was incorrectly increasing the 'currentCount' of the PageInfo
Fixed an issue where loading all of the data for paged data could result in a crash when the 'loadMore' section was removed
2022-10-24 14:52:28 +11:00
Morgan Pretty
89df1261e3 Added a method to allow safer database inserts
Fixed an issue where the app settings were updating immediately making them seem to
Updated GRDB to version 6.1 and SQLCipher to 4.5.2
Added a method which allows for inserting into the database while omitting columns which exist in the object but not in the database (so allow for old migrations to run with less issues)
Updated all the migrations to use the migration safe insert method
Removed some ObjC support extension functions
2022-10-21 17:32:51 +11:00
Morgan Pretty
6c58e08b4c
Merge pull request #712 from mpretty-cyro/fix/tweak-thread-icon-colour
Updated the pinned icon to use "Text Secondary" for it's tint colour
2022-10-19 11:33:17 +11:00
Morgan Pretty
c38a660d2f Updated the pinned icon to use "Text Secondary" for it's tint colour 2022-10-19 11:19:09 +11:00
Morgan Pretty
2d8fa193e2
Merge pull request #710 from mpretty-cyro/fix/theming-tweaks
Theming tweaks and bug fixes
2022-10-17 10:07:20 +11:00
Morgan Pretty
f8b803a9db Merge remote-tracking branch 'upstream/dev' into fix/theming-tweaks 2022-10-14 17:11:49 +11:00
Morgan Pretty
36ccf5fbae
Merge pull request #709 from RyanRory/bad-call-fix-3
Bad call fix
2022-10-14 17:11:24 +11:00
Morgan Pretty
d8fd3b35b4 Theming tweaks and bug fixes
Made a tweak to prevent some odd looking keyboard transitions when going to conversation settings
Updated the PagedDatabaseObserver to not call 'onChangeUnsorted' on the main thread (now we can generate the changeset on the background thread so there is less main thread work)
Fixed an issue where the most recently received message from the swarm could be removed from the swarm yet the app would still poll for it, resulting in the swarm always returning the oldest possible messages until the user sends a new one-to-one message
Fixed an issue where the initial scroll offset could be incorrect due to certain message types
Fixed an issue where the title view inside a conversation could jump when pushing to the conversation settings screen
Refactored a couple of ObjC functions to Swift as they were crashing (due to memory allocation?) hopefully this will fix it
Tweaked some DispatchQueue priorities to ensure PagedDatabaseObserver loading is prioritised
Updated buttons to use a standard convention for highlighted states
Updated the new conversation button to follow the new highlighted state convention
2022-10-14 17:09:38 +11:00
ryanzhao
48c0c06c4b cherry pick bacd call fix & clean 2022-10-14 14:59:19 +11:00
Morgan Pretty
59dac34fe8
Merge pull request #708 from mpretty-cyro/fix/emoji-padding
Tweaked a couple of layout issues in the visible message
2022-10-12 10:31:34 +11:00
Morgan Pretty
b54700575f Tweaked a couple of layout issues in the visible message 2022-10-12 10:23:40 +11:00
Morgan Pretty
73bd4011a4 Increased build number 2022-10-11 11:47:42 +11:00
Morgan Pretty
c4a23a1744
Merge pull request #706 from mpretty-cyro/fix/ons-and-ui-update-bugs
Fixed a couple of bugs with the release
2022-10-11 11:44:10 +11:00
Morgan Pretty
02e632aae4 Fixed a couple of bugs with the release
Fixed a bug where you couldn't start a conversation with an ONS
Fixed a bug where some dropdown settings wouldn't refresh their UI when returning from an update via a child screen
2022-10-11 11:30:10 +11:00
Morgan Pretty
76536a8293
Merge pull request #704 from mpretty-cyro/fix/remove-screenshot-notification-setting
Removed the 'screenshot notifications' setting
2022-10-10 17:33:41 +11:00
Morgan Pretty
42e82af8a2 Removed the 'screenshot notifications' setting 2022-10-10 17:33:10 +11:00
Morgan Pretty
3acec60f06
Merge pull request #702 from mpretty-cyro/feature/last-minute-tweaks
Made a few last minute tweaks and fixes
2022-10-10 16:41:40 +11:00
Morgan Pretty
5a758724b3 Made a few last minute tweaks and fixes
Updated a couple more translations
Updated the copy for the member count in communities
Deleted some more unused code
Fixed up another RTL issue
2022-10-10 16:40:08 +11:00
Morgan Pretty
912fe50d11
Merge pull request #672 from mpretty-cyro/feature/theming
Theming
2022-10-10 12:02:06 +11:00
Morgan Pretty
da1833a5f1 Increased build number 2022-10-10 11:56:28 +11:00
Morgan Pretty
2ad8fc381d Fixed a few message scrolling bugs and a couple minor UI tweaks
Fixed a bug where sending a quote message could result in the messages jumping incorrectly
Fixed a bug where the quote input UI wasn't styled correctly on dark themes
Fixed a minor padding issue
Fixed an issue where in-conversation search could be a bit jumpy (simplified logic greatly)
2022-10-10 11:48:48 +11:00
Morgan Pretty
0af00feed9 Added the version footer back to the settings screen 2022-10-10 10:17:07 +11:00
Morgan Pretty
fc0ac730d0 Bumped build number 2022-10-07 18:47:17 +11:00
Morgan Pretty
5bf3c2d35d Fixed a minor animation glitch 2022-10-07 18:46:13 +11:00
Morgan Pretty
c33b555c3c Translations, better RTL support and minor animation fix
Added some better support for right-to-left languages
Added updated Farsi translations
Fixed a minor transition glitch
2022-10-07 18:46:05 +11:00
Morgan Pretty
58184d6d27 Fixed issues found during testing
Fixed an issue where the user config message wouldn't get sent correctly
Fixed an issue where the theme preference migration wasn't working properly
Fixed a crash which could occur in some cases when updating the theme
Fixed a crash which could occur when opening the new conversation screen with a contact with no name
Fixed a minor UI glitch with the 'sessionId' separator border
Fixed a minor UI issue where long author names in quotes could cause the message bubble to stretch incorrectly
Cleaned up some no-contact UI states
Updated the Atomic queue to have a 'userInteractive' priority so it can't be delayed by lower priority queues and block the main thread
2022-10-07 15:35:17 +11:00
Morgan Pretty
47083cca38 Increased build and version numbers 2022-10-06 09:43:10 +11:00
Morgan Pretty
27e0981913 Added toast and info message deletion, fixed layout issues & unit tests
Added a toast when hitting the emoji reacts rate limit
Added the ability to delete info messages
Fixed some odd layout behaviours with the VisibleMessageCell
Fixed some layout issues with reactions
Removed some unneeded custom code
2022-10-05 18:44:25 +11:00
Morgan Pretty
db54bf657e Fixed remaining bugs
Split the date out of the VisibleMessageCell into it's own cell to clean up deletion/insertion animations
Fixed a layout issue with the Open Group
Fixed an issue where the QRCode tinting wasn't working on iOS 16
Implemented a swift version of an ObjC function
2022-10-04 16:21:13 +11:00
Morgan Pretty
0c09f2bfc5 Fixed a few more QA issues, added a minor feature
Updated the document download UI
Minor font tweaks to match settings more closely
Added profile data to the MessageRequestResponse
Fixed the broken tests
2022-10-03 18:23:34 +11:00
Morgan Pretty
93e12a3fcb Cleaned out old strings 2022-10-03 16:01:46 +11:00
Morgan Pretty
6eeb0ec7ac Fixed most of the styling issues raised during QA
Copy tweak
Added a toast when copying the sessionId or group URL (fixes to the toast UI as well)
Fixed the new conversation screen styling
Fixed the styling of the various attachment screens
Updated the buttons on the attachment screen to behave like the input view buttons
Removed the old OWSNavigationBar and OWSNavigationController (logic was buggy and not actually needed in most cases)
2022-09-30 18:22:28 +10:00
Morgan Pretty
91802e4812 Fixed a number of crashes and bugs
Fixed a crash which would occur when rendering a message containing both a mention and a url
Fixed a crash which could occur during migration due to the openGroupServerMessageId essentially being the max UInt64 value which was overflowing the Int64 storage
Fixed a bug where empty read receipt updates were sending messages (even for non one-to-one conversations)
Fixed a bug where loading in large numbers of messages (via the poller) was auto scrolling to the bottom if the user was close to the bottom (now limited to <5)
Fixed a memory leak with the AllMediaViewController (strong delegate references)
Fixed an issue where non-alphanumeric characters would cause issues with global search
Fixed an issue where search result highlighting wasn't working properly
Fixed an issue where the app switcher UI blocking wasn't working
Updated the conversations to mark messages as read while scrolling (rather than all messages when entering/participating in a conversation)
Updated the modal button font weight to be closer to the designs
Added the ability to delete "unsent" messages
2022-09-30 14:31:05 +10:00
Morgan Pretty
5b1e19dd2e Increased the max username length from 26 bytes to 64 bytes 2022-09-28 18:28:25 +10:00
Morgan Pretty
37124c2185 Updated the alerts to use the custom styled ones
Removed some more unused code
Moved around some files to make them more reusable
2022-09-28 18:26:02 +10:00
Morgan Pretty
40109e0bea Cleaned up the config-based table view controller to be more reusable
Updated the settings screens to have the "rounded group" styling
Added a "loading conversations" label to the Message Requests screen before the conversations load
Removed the legacy UserCell (replaced with the more reusable 'SessionCell')
Renamed a few things to make them more generic and reusable
2022-09-28 17:30:31 +10:00
Morgan Pretty
d9c6f2fc90 Fixed an issue where some data wasn't getting removed when handling an UnsendRequest 2022-09-27 15:36:58 +10:00
Morgan Pretty
f98e2a157e Added rounding to the settings and updated the SettingVC to use the config approach
Removed some unused code
2022-09-27 15:36:47 +10:00
Morgan Pretty
2bc9334244 Fixed a db thread issue introduced in the last commit 2022-09-26 11:37:05 +10:00
Morgan Pretty
6099bd94d8 Updated the rest of the SnodeAPI static variables to be atomic to prevent threading crashes 2022-09-26 11:28:29 +10:00
Morgan Pretty
8109a326cf Merge remote-tracking branch 'upstream/dev' into feature/theming
# Conflicts:
#	Session.xcodeproj/project.pbxproj
#	Session/Closed Groups/NewClosedGroupVC.swift
#	Session/Conversations/ConversationVC+Interaction.swift
#	Session/Conversations/Message Cells/CallMessageCell.swift
#	Session/Conversations/Views & Modals/JoinOpenGroupModal.swift
#	Session/Home/HomeVC.swift
#	Session/Home/New Conversation/NewDMVC.swift
#	Session/Home/NewConversationButtonSet.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/Open Groups/JoinOpenGroupVC.swift
#	Session/Open Groups/OpenGroupSuggestionGrid.swift
#	Session/Settings/SettingsVC.swift
#	Session/Shared/BaseVC.swift
#	Session/Shared/OWSQRCodeScanningViewController.m
#	Session/Shared/ScanQRCodeWrapperVC.swift
#	Session/Shared/UserCell.swift
#	SessionMessagingKit/Configuration.swift
#	SessionShareExtension/SAEScreenLockViewController.swift
#	SessionUIKit/Style Guide/Gradients.swift
#	SignalUtilitiesKit/Media Viewing & Editing/OWSViewController+ImageEditor.swift
#	SignalUtilitiesKit/Screen Lock/ScreenLockViewController.m
2022-09-26 11:16:47 +10:00
Morgan Pretty
d507a3b943
Merge pull request #689 from RyanRory/menu-redesign
Menu Redesign
2022-09-20 16:10:54 +10:00
Morgan Pretty
1045e79729 Merge remote-tracking branch 'upstream/dev' into menu-redesign
# Conflicts:
#	Session.xcodeproj/project.pbxproj
2022-09-20 16:10:32 +10:00
Morgan Pretty
f7fd15dae0 Finished removing usages to non-theme colour variables
Updated theming throughout
Fixed a couple of bugs with the media gallery
2022-09-20 16:06:01 +10:00
Morgan Pretty
d01e756c67
Merge pull request #693 from mpretty-cyro/fix/regression-issues
Fixed a few bugs found during regression testing
2022-09-19 16:44:24 +10:00
Morgan Pretty
a59d1b8153 Fixed a few bugs found during regression testing
Increased version & build numbers for release
Fixed a bug where the closed group info messages might not include names for members added/removed when the profile was unknown
Fixed a bug where removing members from closed groups wasn't showing an info message correctly
Fixed a minor layout issue in the CallMessageCell
2022-09-19 16:39:04 +10:00
Morgan Pretty
7dc75af361 Fixed some bugs with disappearing messages
Fixed an issue where the DisappearingMessages job could incorrectly overwrite it's nextRunTimestamp
Fixed an issue where sent/self-send messages wouldn't correctly trigger the disappearing messages job
Fixed an issue where sending the mnemonic along with an attachment wasn't showing the warning prompt
Fixed an issue where the home screen wasn't updating on launch if the displayed messages were removed disappearing messages
Fixed a small UI glitch where the input field wouldn't immediately get cleared when sending a message (unfortunately there is a slight delay before the message appears still)
2022-09-19 14:02:11 +10:00
RyanZhao
81d4497ed1
Merge pull request #691 from RyanRory/open-group-permissions
Disable typing and message requests in open groups if no "write" permission
2022-09-16 12:44:25 +10:00
RyanZhao
a52673f130
Merge pull request #692 from RyanRory/call-waiting-time-increment
Increase call connecting time from 30s to 60s
2022-09-16 11:21:32 +10:00