fix retry action will end up with sending the same interaction twice
This commit is contained in:
parent
3aacf27b79
commit
00d5d08152
|
@ -1617,6 +1617,10 @@ extension ConversationVC:
|
||||||
).update(db)
|
).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(
|
try MessageSender.send(
|
||||||
db,
|
db,
|
||||||
interaction: interaction,
|
interaction: interaction,
|
||||||
|
|
Loading…
Reference in New Issue