fix bug where contact channel not getting deleted

This commit is contained in:
root 2023-01-18 00:14:29 +00:00
parent 36685f6051
commit fa0abce7e7

View File

@ -122,7 +122,7 @@ func GetChannels(w http.ResponseWriter, r *http.Request) {
}
for _, slot := range slots {
if !typesSet || hasChannelType(types, slot.Channel) {
if !typesSet || hasChannelType(types, slot.Channel) || slot.Channel == nil {
shared := isChannelShared(card.GUID, slot.Channel)
if channelRevisionSet {
response = append(response, getChannelRevisionModel(&slot, shared))