cleanup console.warn calls

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

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

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

@ -164,13 +164,13 @@ export const SettingsCategoryAppearance = (props: { hasPassword: boolean | null
buttonColor={SessionButtonColor.Primary} buttonColor={SessionButtonColor.Primary}
buttonText={window.i18n('showDebugLog')} buttonText={window.i18n('showDebugLog')}
/> />
<SessionSettingButtonItem {/* <SessionSettingButtonItem
onClick={async () => { onClick={async () => {
await fillWithTestData(100, 1000); await fillWithTestData(100, 1000);
}} }}
buttonColor={SessionButtonColor.Primary} buttonColor={SessionButtonColor.Primary}
buttonText={'Spam fill DB using cached'} 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>> { export async function searchMessages(query: string, { limit }: any = {}): Promise<Array<any>> {
const messages = await channels.searchMessages(query, { limit }); const messages = await channels.searchMessages(query, { limit });
console.warn('searched message', messages);
return messages; return messages;
} }

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

Loading…
Cancel
Save