mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-22 01:40:07 +01:00
Add more logging around threads in message sends.
This commit is contained in:
committed by
Cody Henthorne
parent
d1e0f3646a
commit
992b04f8c5
@@ -1053,7 +1053,13 @@ public class ThreadDatabase extends Database {
|
||||
public long getOrCreateValidThreadId(@NonNull Recipient recipient, long candidateId, int distributionType) {
|
||||
if (candidateId != -1) {
|
||||
Optional<Long> remapped = RemappedRecords.getInstance().getThread(context, candidateId);
|
||||
return remapped.isPresent() ? remapped.get() : candidateId;
|
||||
|
||||
if (remapped.isPresent()) {
|
||||
Log.i(TAG, "Using remapped threadId: " + candidateId + " -> " + remapped.get());
|
||||
return remapped.get();
|
||||
} else {
|
||||
return candidateId;
|
||||
}
|
||||
} else {
|
||||
return getThreadIdFor(recipient, distributionType);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user