Force cid conversation to string in DeleteContact event
continuous-integration/drone/pr Build was killed
Details
continuous-integration/drone/pr Build was killed
Details
This commit is contained in:
parent
655b1cf208
commit
2bbe0c48d6
|
@ -770,7 +770,7 @@ func (cp *cwtchPeer) DeleteConversation(id int) error {
|
||||||
ci, err := cp.storage.GetConversation(id)
|
ci, err := cp.storage.GetConversation(id)
|
||||||
if err == nil && ci != nil {
|
if err == nil && ci != nil {
|
||||||
log.Debugf("deleting %v", ci)
|
log.Debugf("deleting %v", ci)
|
||||||
cp.eventBus.Publish(event.NewEventList(event.DeleteContact, event.RemotePeer, ci.Handle, event.ConversationID, id))
|
cp.eventBus.Publish(event.NewEventList(event.DeleteContact, event.RemotePeer, ci.Handle, event.ConversationID, strconv.Itoa(id)))
|
||||||
return cp.storage.DeleteConversation(id)
|
return cp.storage.DeleteConversation(id)
|
||||||
}
|
}
|
||||||
return fmt.Errorf("could not delete conversation, did not exist")
|
return fmt.Errorf("could not delete conversation, did not exist")
|
||||||
|
|
Loading…
Reference in New Issue