mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-20 00:08:04 +01:00
Allow overwriting of previously-delted profiles
This commit is contained in:
committed by
Jon Chambers
parent
f7ff8e3837
commit
acfcb18f29
@@ -64,7 +64,9 @@ public class Profiles implements ProfilesStore {
|
||||
+ AVATAR + " = EXCLUDED." + AVATAR + ", "
|
||||
+ ABOUT + " = EXCLUDED." + ABOUT + ", "
|
||||
+ ABOUT_EMOJI + " = EXCLUDED." + ABOUT_EMOJI + ", "
|
||||
+ PAYMENT_ADDRESS + " = EXCLUDED." + PAYMENT_ADDRESS)
|
||||
+ PAYMENT_ADDRESS + " = EXCLUDED." + PAYMENT_ADDRESS + ", "
|
||||
+ DELETED + " = FALSE, "
|
||||
+ COMMITMENT + " = CASE WHEN profiles." + DELETED + " = TRUE THEN EXCLUDED." + COMMITMENT + " ELSE profiles." + COMMITMENT + " END")
|
||||
.bind("uuid", uuid)
|
||||
.bind("version", profile.getVersion())
|
||||
.bind("name", profile.getName())
|
||||
|
||||
Reference in New Issue
Block a user