cleanup console.warn calls

pull/2141/head
audric 2 years ago
parent 8b5b3f06bb
commit 62f0edf8cb

@ -2271,8 +2271,6 @@ function hasConversationOutgoingMessage(conversationId) {
throw new Error('hasConversationOutgoingMessage: Unable to get coun');
}
console.warn('hasConversationOutgoingMessage', row);
return Boolean(row['count(*)']);
}

@ -11,6 +11,8 @@ const localeMessages = ipcRenderer.sendSync('locale-data');
global.dcodeIO = global.dcodeIO || {};
global.dcodeIO.ByteBuffer = require('bytebuffer');
window._ = require('lodash');
window.getVersion = () => config.version;
window.theme = config.theme;
window.i18n = i18n.setup(locale, localeMessages);

@ -164,13 +164,13 @@ export const SettingsCategoryAppearance = (props: { hasPassword: boolean | null
buttonColor={SessionButtonColor.Primary}
buttonText={window.i18n('showDebugLog')}
/>
<SessionSettingButtonItem
{/* <SessionSettingButtonItem
onClick={async () => {
await fillWithTestData(100, 1000);
}}
buttonColor={SessionButtonColor.Primary}
buttonText={'Spam fill DB using cached'}
/>
/> */}
</>
);
}

@ -588,7 +588,6 @@ export async function searchConversations(query: string): Promise<Array<any>> {
export async function searchMessages(query: string, { limit }: any = {}): Promise<Array<any>> {
const messages = await channels.searchMessages(query, { limit });
console.warn('searched message', messages);
return messages;
}

@ -30,7 +30,6 @@ export const getSearchResults = createSelector(
selectedConversation?: string,
selectedMessage?: string
) => {
console.warn({ state: searchState });
return {
contacts: compact(
searchState.contacts.map(id => {

Loading…
Cancel
Save