Skip to content

Commit 4aef4c7

Browse files
committed
Fix thread getting created when it should not
1 parent 4e66810 commit 4aef4c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/org/session/libsession/messaging/jobs/BatchMessageReceiveJob.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ class BatchMessageReceiveJob @AssistedInject constructor(
176176
val threadID = if (shouldCreateThread(parsedParams)) {
177177
threadDatabase.getOrCreateThreadIdFor(threadAddress)
178178
} else {
179-
threadDatabase.getOrCreateThreadIdFor(threadAddress)
179+
threadDatabase.getThreadIdIfExistsFor(threadAddress)
180180
}
181181
threadMap.getOrPut(threadID) { mutableListOf() } += parsedParams
182182
} catch (e: Exception) {

0 commit comments

Comments
 (0)