-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disappearing message rebuild #731
Disappearing message rebuild #731
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- We are looking to discuss some potential changes to the tech design as the updated user config handling might be able to be completed before this goes live so before running through these issues it might be good to touch base as there may be more/less work to do 😉
SessionMessagingKit/Database/Migrations/_003_YDBToGRDBMigration.swift
Outdated
Show resolved
Hide resolved
…-redesign # Conflicts: # Session.xcodeproj/project.pbxproj # Session/Conversations/Settings/ThreadDisappearingMessagesViewModel.swift # Session/Shared/Views/SessionCell+AccessoryView.swift # SessionMessagingKit/Configuration.swift # SessionMessagingKit/Database/Models/Interaction.swift # SessionMessagingKit/Shared Models/SessionThreadViewModel.swift # SessionUtilitiesKit/Database/Models/Job.swift
interactionExpirationInfosByExpiresInSeconds.forEach { expiresInSeconds, expirationInfos in | ||
let expirationTimestampMs: Int64 = Int64(ceil(startedAtMs + expiresInSeconds * 1000)) | ||
|
||
SnodeAPI.updateExpiry( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What happens if the app closes before these succeed?
openGroupServerMessageId: message.openGroupServerMessageId.map { Int64($0) } | ||
).update(db) | ||
// Only store the server hash of a sync message if the message is self send valid | ||
if (message.isSelfSendValid && isSyncMessage || !message.isSelfSendValid) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was causing an issue where open group DMs were appearing twice (because it was failing this check) - I updated the check to the below but you should probably test and make sure the logic is what you were after:
if (message.isSelfSendValid && isSyncMessage || !isSyncMessage)
…ling' into disappearing-message-redesign # Conflicts: # Session.xcodeproj/project.pbxproj # Session/Conversations/ConversationVC.swift # Session/Conversations/ConversationViewModel.swift # Session/Conversations/Settings/ThreadDisappearingMessagesSettingsViewModel.swift # Session/Conversations/Settings/ThreadSettingsViewModel.swift # Session/Conversations/Views & Modals/ConversationTitleView.swift # Session/Notifications/AppNotifications.swift # Session/Settings/NukeDataModal.swift # Session/Shared/SessionTableViewModel.swift # Session/Shared/Views/SessionCell.swift # SessionMessagingKit/Configuration.swift # SessionMessagingKit/Database/Models/Contact.swift # SessionMessagingKit/Database/Models/DisappearingMessageConfiguration.swift # SessionMessagingKit/Messages/Control Messages/ClosedGroupControlMessage.swift # SessionMessagingKit/Messages/Message.swift # SessionMessagingKit/Messages/Visible Messages/VisibleMessage.swift # SessionMessagingKit/Protos/Generated/SNProto.swift # SessionMessagingKit/Protos/Generated/SessionProtos.pb.swift # SessionMessagingKit/Protos/SessionProtos.proto # SessionMessagingKit/Sending & Receiving/Message Handling/MessageReceiver+ExpirationTimers.swift # SessionMessagingKit/Sending & Receiving/MessageReceiver.swift # SessionMessagingKit/Shared Models/SessionThreadViewModel.swift # SessionMessagingKitTests/Open Groups/OpenGroupManagerSpec.swift # SessionMessagingKitTests/_TestUtilities/TestOnionRequestAPI.swift # SessionSnodeKit/Models/SnodeAPIEndpoint.swift # SessionSnodeKit/SnodeAPI.swift # SessionTests/Conversations/Settings/ThreadDisappearingMessagesViewModelSpec.swift # SessionUtilitiesKit/General/Features.swift
…-message-redesign
….com/mpretty-cyro/session-ios into disappearing-message-redesign
…oved immediately.
…1D default setting
…-redesign # Conflicts: # .drone.jsonnet
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev #731 +/- ##
==========================================
+ Coverage 11.43% 11.44% +0.01%
==========================================
Files 633 643 +10
Lines 95960 98320 +2360
==========================================
+ Hits 10970 11253 +283
- Misses 84990 87067 +2077 ☔ View full report in Codecov by Sentry. |
…anRory/loki-messenger-ios into disappearing-message-redesign
…synced on new linked devices
…oved by a race condition
…essages received by PNs.
No description provided.