@ -854,7 +854,10 @@ async function updateToLokiSchemaVersion1(currentVersion, instance) {
const publicChatData = {
...baseData,
id: `publicChat:1@${lokiPublicServerData.serverUrl.replace(/^https?\:\/\//i, '')}`,
id: `publicChat:1@${lokiPublicServerData.serverUrl.replace(
/^https?:\/\//i,
''
)}`,
server: lokiPublicServerData.serverUrl,
name: 'Loki Public Chat',
channelId: '1',
@ -458,7 +458,7 @@ class LokiPublicChannelAPI {
// if any problems, abort out
if (res.err || !res.response) {
if (res.err) log.error('Error '+res.err);
if (res.err) log.error(`Error ${res.err}`);
break;
}