Skip to content

Commit

Permalink
reply with InfoNoAction if credential being deleted is not found
Browse files Browse the repository at this point in the history
or-else committed Apr 16, 2020
1 parent db431ba commit 00a5964
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion server/topic.go
Original file line number Diff line number Diff line change
@@ -2299,9 +2299,13 @@ func (t *Topic) replyDelCred(h *Hub, sess *Session, asUid types.Uid, authLvl aut
if len(removed) > 0 {
t.tags = tags
t.presSubsOnline("tags", "", nilPresParams, nilPresFilters, "")
sess.queueOut(decodeStoreError(err, del.Id, del.Topic, now, nil))
} else {
sess.queueOut(InfoNoAction(del.Id, del.Topic, now))
}
} else {
sess.queueOut(decodeStoreError(err, del.Id, del.Topic, now, nil))
}
sess.queueOut(decodeStoreError(err, del.Id, del.Topic, now, nil))
return err
}

0 comments on commit 00a5964

Please sign in to comment.