mirror of
https://github.com/balzack/databag.git
synced 2025-02-14 12:39:17 +00:00
fixed for contact messages stuck in unconfirmed
This commit is contained in:
parent
981cf88cf1
commit
dbf9afa3fd
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user