Fixed an incorrect filter and an incorrect function param

pull/1053/head
Morgan Pretty 11 months ago
parent 54c52a5155
commit 4f86ea7a71

@ -485,7 +485,7 @@ public extension SessionThread {
if threadIds.contains(currentUserPublicKey) { if threadIds.contains(currentUserPublicKey) {
// Clear any interactions for the deleted thread // Clear any interactions for the deleted thread
_ = try Interaction _ = try Interaction
.filter(threadIds.contains(Interaction.Columns.threadId)) .filter(Interaction.Columns.threadId == currentUserPublicKey)
.deleteAll(db) .deleteAll(db)
_ = try SessionThread _ = try SessionThread

@ -164,7 +164,7 @@ extension MessageReceiver {
creationDateTimestamp: (TimeInterval(formationTimestampMs) / 1000), creationDateTimestamp: (TimeInterval(formationTimestampMs) / 1000),
shouldBeVisible: .setTo(true) shouldBeVisible: .setTo(true)
), ),
calledFromConfig: false, calledFromConfig: calledFromConfigHandling,
using: dependencies using: dependencies
) )
let closedGroup: ClosedGroup = try ClosedGroup( let closedGroup: ClosedGroup = try ClosedGroup(

Loading…
Cancel
Save