Fix the duplicate chat members bug by actually deleting old data (!)
- The memberlist refresh thing was supposed to delete all existing chat members and then reinsert them all again. - However, it didn't actually do the delete step. Big whoops.
This commit is contained in:
parent
0e38259584
commit
56363c8430
|
@ -754,6 +754,7 @@ Returns three values: avatar data (as two values), and a generalized boolean spe
|
||||||
(insert-member-stmt "INSERT INTO user_chat_members (chat_id, wa_jid, resource, affiliation) VALUES (?, ?, ?, ?)"))
|
(insert-member-stmt "INSERT INTO user_chat_members (chat_id, wa_jid, resource, affiliation) VALUES (?, ?, ?, ?)"))
|
||||||
(with-transaction
|
(with-transaction
|
||||||
(bind-parameters update-subject-stmt subject cid)
|
(bind-parameters update-subject-stmt subject cid)
|
||||||
|
(bind-parameters delete-members-stmt cid)
|
||||||
(sqlite:step-statement update-subject-stmt)
|
(sqlite:step-statement update-subject-stmt)
|
||||||
(sqlite:step-statement delete-members-stmt)
|
(sqlite:step-statement delete-members-stmt)
|
||||||
(loop
|
(loop
|
||||||
|
|
Loading…
Reference in a new issue