From dbf9afa3fd4ddef7dbdafb74414a6eb96cc3c4be Mon Sep 17 00:00:00 2001 From: Roland Osborne Date: Fri, 22 Jul 2022 15:02:18 -0700 Subject: [PATCH] fixed for contact messages stuck in unconfirmed --- net/web/src/api/addContactChannelTopic.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/web/src/api/addContactChannelTopic.js b/net/web/src/api/addContactChannelTopic.js index 4db7ee66..3ca0d49d 100644 --- a/net/web/src/api/addContactChannelTopic.js +++ b/net/web/src/api/addContactChannelTopic.js @@ -2,7 +2,7 @@ import { checkResponse, fetchWithTimeout } from './fetchUtil'; export async function addContactChannelTopic(server, token, channelId, message, assets ) { - if (message == null || (assets == null || assets.length == 0)) { + if (message == null && (assets == null || assets.length == 0)) { let topic = await fetchWithTimeout(`https://${server}/content/channels/${channelId}/topics?contact=${token}`, { method: 'POST', body: JSON.stringify({}) }); checkResponse(topic);