Commit Graph

15795 Commits (ea7603bf3b7c340777ca47ba9086a9b0bf61618b)
 

Author SHA1 Message Date
Morgan Pretty ea7603bf3b Renamed some variables to make it a bit clearer and made sure it supported a port in the url 3 years ago
Morgan Pretty dad264c239 Included a fix for duplicate open groups and added unit tests for it 3 years ago
Morgan Pretty 8b6b4be8e3 Added back a missing type check 3 years ago
Morgan Pretty 5710fe18fb Reverted a change to the type for the serverId of a TSAttachment (change didn't match the protobuf) 3 years ago
Morgan Pretty c44256b1d6 Added more unit tests
Fixed a possible divide by zero error
Cleaned up some of the id blinding methods (ie. removing handling for impossible error states)
Added unit tests for the new Sodium methods (used for id blinding)
Added unit tests for some of the shared code
Added unit tests for the MessageSender+Encryption extension functions
Added unit tests for the MessageReceiver+Decryption extension functions
Updated the unit test key constants to be consistent with the SOGS auth-example keys for consistency
3 years ago
Morgan Pretty 2851d5e8c7 Minor tweak to the updated URL parsing logic to be extra safe 3 years ago
Morgan Pretty 046269f1df Finished the OpenGroupManager unit tests
Fixed a bug with how the open group URL processing was working (one of the example URLs wasn't getting processed correctly)
3 years ago
Morgan Pretty 93dbc2f63c Added more OpenGroupManager unit tests 3 years ago
Morgan Pretty ff480a37d5 Added more unit tests for the OpenGroupManager
Added the ability to mock the identity manager (ie. return a mock key for the users key)
Swapped the Test Nonce16 & Nonce24 classes for Mock ones
Fixed an issue where the ContactUtilities call from the OpenGroupManager wasn't injecting the dependencies
Added unit tests for the handleDirectMessages and isUserModetatorOrAdmin methods
3 years ago
Morgan Pretty 37f4d2ecca Further work on OpenGroupManager tests
Added tests for the OpenGroupManager handleMessages logic
Updated some logic to do an optional unwrap instead of a forced one to prevent the code from crashing when running unit tests
Fixed some tests which were flaky (could fail if other tests ran at the same time on other threads)
Fixed a minor potential bug where a message with no sender data wouldn't get deleted (shouldn't be dependant on the sender value being populated)
3 years ago
Morgan Pretty b1684f6b23 More unit tests, fixed a few issues uncovered by testing
Updated the OpenGroupManager to support injecting the cache for better unit testing
Updated the MessageReceiver to support Dependencies being passed as a parameter for visible message and storage purposes
Added a debugDescription to the OpenGroup for more accurate unit testing
Fixed an issue where the poll function would include the inbox and outbox endpoints even when the server was not blinded
Fixed some test compilation time issues
Fixed a bug where the OpenGroupAPI Room was using 'description' as a parameter name (used by Swift for other purposes)
Fixed a bug where then OpenGroup was incorrectly using the system 'description'  property in one place
Renamed the parseV2OpenGroup to parseOpenGroup for consistency
3 years ago
Morgan Pretty cb27da48b7 Updated the code to handle a clock out of sync error (different error code from v2 & v3) 3 years ago
Morgan Pretty 3fdfda1960 Code consistency tweaks 3 years ago
Morgan Pretty 63469acd3b Merge branch 'dev' into feature/session-id-blinding-part-2
# Conflicts:
#	SessionMessagingKit/Database/Storage+Messaging.swift
#	SessionMessagingKit/Open Groups/OpenGroupManagerV2.swift
3 years ago
Morgan Pretty d3e9fff893 Merge remote-tracking branch 'upstream/dev' into dev 3 years ago
Morgan Pretty f9c2655df4 Finalised the OpenGroupAPI and more tests
Fixed an issue where messages where signed incorrectly when blinding wasn't enabled on a SOGS
Fixed an issue where a single invalid message would result in all messages in that request being dropped
Updated the final legacy endpoint (ban and delete all messages)
Moved the OpenGroupManager poller values into the 'Cache' (so they are thread safe)
Started adding unit tests for the OpenGroupManager
Removed some redundant parameters from the 'Request' type
3 years ago
Ryan Zhao e73fe4fe31 bump up build number 3 years ago
RyanZhao 79d148a8d6
Merge pull request #582 from RyanRory/message-replication-fix
Further message replication fix
3 years ago
Ryan Zhao 6f927a5003 minor refactor 3 years ago
Ryan Zhao a1e47419c8 minor refactor 3 years ago
Ryan Zhao b920dbcc10 check if the incoming message is already in database before persisting 3 years ago
Morgan Pretty c415fc9e06 Merge branch 'dev' into feature/session-id-blinding-part-2
# Conflicts:
#	Session/Open Groups/OpenGroupSuggestionGrid.swift
#	SessionMessagingKit/Open Groups/OpenGroupAPIV2+ObjC.swift
#	SessionMessagingKit/Open Groups/OpenGroupAPIV2.swift
#	SessionMessagingKit/Open Groups/OpenGroupManagerV2.swift
3 years ago
Morgan Pretty a9f4e984af Merge remote-tracking branch 'upstream/dev' into dev 3 years ago
Morgan Pretty 31ecd78737 Refactored the mocking code to use a better convention which also allows for call validation
Added a Nimble predicate for checking a function on a mock was called
Added the various remove methods to the Storage protocol
Updated the Ed25519Type to be an instance-based protocol (needed for mocking)
3 years ago
Ryan Zhao c9b9104e8a bump up build number 3 years ago
RyanZhao b7b988b449
Merge pull request #580 from RyanRory/unread-metion-fix
Fix unread mention indicator
3 years ago
Ryan Zhao 48c74d9476 refactor to apply this logic to unread message count 3 years ago
Ryan Zhao 06958babcb fix unread mention indicator showing after the message is deleted 3 years ago
Morgan Pretty 3e711811c3 Merge remote-tracking branch 'upstream/dev' into dev 3 years ago
Ryan Zhao 30e1f34782 fix configuration message may include contacts that shouldn't be visible 3 years ago
RyanZhao a31cfd2142
Merge pull request #578 from mpretty-cyro/feature/two-character-initials
Update the fallback avatar to be two characters
3 years ago
RyanZhao 99da263a50
Merge pull request #579 from mpretty-cyro/fix/message-request-crash
Fix message request bugs
3 years ago
Morgan Pretty 0e15c63e6b Fixed a case where a the share extension wasn't using a transaction version of a method 3 years ago
Morgan Pretty c2e13f02bc Fixed a crash which could occur while processing message request notifications due to not using a DB transaction 3 years ago
Morgan Pretty d3734efc16 Updated the casing for the avatar text 3 years ago
Morgan Pretty e786102f03 Updated the profile icon to default to using two characters (initials if possible) 3 years ago
Morgan Pretty b3d18b0135 Merge remote-tracking branch 'upstream/dev' into dev 3 years ago
Ryan Zhao 195a91ac8b fix potential crash for nested transaction 3 years ago
RyanZhao 20f99df0be
Merge pull request #577 from RyanRory/bug-fix-1-11-22
Bug fix 1.11.22
3 years ago
RyanZhao d3064efc1e
Merge pull request #576 from mpretty-cyro/fix/message-request-tweaks
Message request tweaks
3 years ago
Ryan Zhao e72f0f528d fix notification body for attachments 3 years ago
Morgan Pretty 3e380ede4e A couple of message request fixes
Added an error state to the OpenGroupSuggestionGrid
Fixed a bug where the settings button wouldn't appear for the sender of a message request once approved
3 years ago
Morgan Pretty 57c1e8afbf Merge remote-tracking branch 'upstream/dev' into dev 3 years ago
Ryan Zhao 05e2457f8b fix message request notification title 3 years ago
Ryan Zhao eb4c90b0d4 fix global search results cell UI for groups without member 3 years ago
RyanZhao d7bbd03dab
Merge pull request #575 from mpretty-cyro/fix/config-message-bugs
Fixes for config message handling
3 years ago
Morgan Pretty c0e90152ce Fixes for config message handling
Updated the config message handling to try fetch the existing contact first before creating a new one
Updated the OpenGroupManagerV2 to avoid joining an open group if the user already has a thread for it and is polling it
3 years ago
Morgan Pretty 8a9704f6bd Merge remote-tracking branch 'upstream/dev' into dev 3 years ago
Morgan Pretty a39afd6037 Fixed build errors and mock data tweaks
Fixed a couple of merge build errors
Made some tweaks to the MockDataGenerator to more-properly create open groups
Added some progress logging to the MockDataGenerator
Updated the MockDataGenerator to support generating threads with a fixed number of messages (ie. to compare performance based on message count)
3 years ago
Ryan Zhao fb9f6fa3ec bump up build number 3 years ago