Force cid conversation to string in DeleteContact event #517

Merged
sarah merged 2 commits from deletecontactfix into master 2023-06-13 17:48:51 +00:00
1 changed files with 2 additions and 0 deletions
Showing only changes of commit 9605894463 - Show all commits

View File

@ -46,6 +46,8 @@ func NewEventList(eventType Type, args ...interface{}) Event {
val, vok := args[i+1].(string)
if kok && vok {
data[key] = val
} else {
log.Errorf("attempted to send a field that could not be parsed to a string: %v %v", args[i], args[i+1])
}
}
return Event{EventType: eventType, EventID: GetRandNumber().String(), Data: data}