fix retry action will end up with sending the same interaction twice

pull/800/head
Ryan Zhao 1 year ago
parent 3aacf27b79
commit 00d5d08152

@ -1617,6 +1617,10 @@ extension ConversationVC:
).update(db)
}
// Remove message sending jobs for the same interaction in database
// Prevent the same message being sent twice
try Job.filter(Job.Columns.interactionId == interaction.id).deleteAll(db)
try MessageSender.send(
db,
interaction: interaction,

Loading…
Cancel
Save