handle missing subject in group metadata
This commit is contained in:
parent
5ce6d47266
commit
2e4e375196
|
@ -803,7 +803,7 @@ Returns three values: avatar data (as two values), and a generalized boolean spe
|
||||||
(delete-members-stmt "DELETE FROM user_chat_members WHERE chat_id = ?")
|
(delete-members-stmt "DELETE FROM user_chat_members WHERE chat_id = ?")
|
||||||
(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 (1 (whatscl::aval :subject data)) cid)
|
(bind-parameters update-subject-stmt (1 (or (whatscl::cassoc :subject data) "unnamed group")) 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