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:
eta 2020-09-16 13:49:56 +01:00
parent 0e38259584
commit 56363c8430

View file

@ -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 (?, ?, ?, ?)"))
(with-transaction
(bind-parameters update-subject-stmt subject cid)
(bind-parameters delete-members-stmt cid)
(sqlite:step-statement update-subject-stmt)
(sqlite:step-statement delete-members-stmt)
(loop