Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Michael Gmelin
authored and
Michael Gmelin
committed
Oct 17, 2021
1 parent
18a7aae
commit 4df137c
Showing
5 changed files
with
94 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
net-im/signald/files/patch-src_main_java_io_finn_signald_db_RecipientsTable.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- src/main/java/io/finn/signald/db/RecipientsTable.java.orig 2021-10-17 08:41:09 UTC | ||
+++ src/main/java/io/finn/signald/db/RecipientsTable.java | ||
@@ -144,6 +144,16 @@ public class RecipientsTable { | ||
|
||
if (storedUUID == null) { | ||
storedUUID = getRegisteredUser(e164); | ||
+ if (rowid < 0 && storedUUID != null && queryUUID == null) { | ||
+ statement.setString(1, storedUUID.toString()); | ||
+ statement.setString(2, null); | ||
+ rows = statement.executeQuery(); | ||
+ if (rows.next()) { | ||
+ rowid = rows.getInt(ROW_ID); | ||
+ update(E164, e164, rowid); | ||
+ } | ||
+ } | ||
+ | ||
if (rowid > 0) { | ||
update(UUID, storedUUID.toString(), rowid); | ||
} else { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters