mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-07-11 22:48:56 +00:00
core: fix changing profile of prepared chats losing chat items (#6843)
This commit is contained in:
@@ -429,6 +429,14 @@ updatePreparedContactUser
|
||||
WHERE contact_profile_id = ?
|
||||
|]
|
||||
(newUserId, currentTs, profileId)
|
||||
DB.execute
|
||||
db
|
||||
[sql|
|
||||
UPDATE chat_items
|
||||
SET user_id = ?, updated_at = ?
|
||||
WHERE contact_id = ?
|
||||
|]
|
||||
(newUserId, currentTs, contactId)
|
||||
safeDeleteLDN db user oldLDN
|
||||
getContact db vr newUser contactId
|
||||
|
||||
|
||||
Reference in New Issue
Block a user