parent
612fb2bae7
commit
5767138006
1 changed files with 3 additions and 0 deletions
3
user.go
3
user.go
|
@ -821,6 +821,9 @@ func (user *User) syncConversation(v *gmproto.Conversation, source string) {
|
||||||
if cancel := portal.cancelCreation.Load(); cancel != nil {
|
if cancel := portal.cancelCreation.Load(); cancel != nil {
|
||||||
if updateType == gmproto.ConversationStatus_SPAM_FOLDER || updateType == gmproto.ConversationStatus_BLOCKED_FOLDER {
|
if updateType == gmproto.ConversationStatus_SPAM_FOLDER || updateType == gmproto.ConversationStatus_BLOCKED_FOLDER {
|
||||||
(*cancel)(fmt.Errorf("conversation was moved to spam"))
|
(*cancel)(fmt.Errorf("conversation was moved to spam"))
|
||||||
|
} else if updateType == gmproto.ConversationStatus_DELETED {
|
||||||
|
(*cancel)(fmt.Errorf("conversation was deleted"))
|
||||||
|
portal.Delete()
|
||||||
} else {
|
} else {
|
||||||
log.Debug().Msg("Conversation creation is still pending, ignoring new sync event")
|
log.Debug().Msg("Conversation creation is still pending, ignoring new sync event")
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue