diff --git a/qortal-ui-plugins/plugins/core/components/ChatPage.js b/qortal-ui-plugins/plugins/core/components/ChatPage.js index 538240e9..f8566b18 100644 --- a/qortal-ui-plugins/plugins/core/components/ChatPage.js +++ b/qortal-ui-plugins/plugins/core/components/ChatPage.js @@ -1319,7 +1319,6 @@ class ChatPage extends LitElement { name: name ? name : undefined } } catch (error) { - console.log(error) } return memberItem @@ -1328,7 +1327,6 @@ class ChatPage extends LitElement { this.groupMembers = membersWithName this.pageNumber = this.pageNumber + 1 } catch (error) { - console.error(error) } } @@ -1506,7 +1504,6 @@ class ChatPage extends LitElement { this.userFoundModalOpen = true; } catch (error) { this.loading = false; - console.error(error); let err4string = get("chatpage.cchange35"); parentEpml.request('showSnackBar', `${err4string}`) } @@ -1535,7 +1532,6 @@ class ChatPage extends LitElement { const stringifyMessageObject = JSON.stringify(message); this.sendMessage(stringifyMessageObject, undefined, '', true) } catch (error) { - console.log({error}); } } @@ -1638,7 +1634,6 @@ class ChatPage extends LitElement { name: name ? name : undefined } } catch (error) { - console.log(error) } return memberItem @@ -1653,7 +1648,6 @@ class ChatPage extends LitElement { name: name ? name : undefined } } catch (error) { - console.log(error) } return memberItem @@ -1663,7 +1657,6 @@ class ChatPage extends LitElement { this.groupMembers = membersWithName this.groupInfo = getGroupInfo } catch (error) { - console.error(error) } } @@ -1716,10 +1709,10 @@ class ChatPage extends LitElement { if (changedProperties && changedProperties.has('isLoading')) { - if (this.isLoading === true && this.currentEditor === '_chatEditorDOM') { + if (this.isLoading === true && this.currentEditor === '_chatEditorDOM' && this.editor && this.editor.setEditable) { this.editor.setEditable(false) } - if (this.isLoading === false && this.currentEditor === '_chatEditorDOM') { + if (this.isLoading === false && this.currentEditor === '_chatEditorDOM' && this.editor && this.editor.setEditable) { this.editor.setEditable(true) } } @@ -2432,7 +2425,6 @@ class ChatPage extends LitElement { this._publicKey.hasPubKey = false } } catch (error) { - console.error(error); } if(!hasPublicKey || !this._publicKey.hasPubKey){ diff --git a/qortal-ui-plugins/plugins/core/components/ChatScroller.js b/qortal-ui-plugins/plugins/core/components/ChatScroller.js index 62033e44..b94fd3f4 100644 --- a/qortal-ui-plugins/plugins/core/components/ChatScroller.js +++ b/qortal-ui-plugins/plugins/core/components/ChatScroller.js @@ -466,7 +466,6 @@ class MessageTemplate extends LitElement { const parsedMsg = JSON.parse(repliedToData.decodedMessage); repliedToData.decodedMessage = parsedMsg; } catch (error) { - console.error(error); } } @@ -856,7 +855,6 @@ class ChatMenu extends LitElement { this.setForwardProperties(stringifyMessageObject) } catch (error) { - console.log({error}) } } render() { @@ -874,7 +872,6 @@ class ChatMenu extends LitElement { this.setToggledMessage(this.originalMessage) this.emojiPicker.togglePicker(e.target) } catch (error) { - console.log({error}) } }} diff --git a/qortal-ui-plugins/plugins/core/messaging/q-chat/q-chat.src.js b/qortal-ui-plugins/plugins/core/messaging/q-chat/q-chat.src.js index 11458bd6..8fce2d88 100644 --- a/qortal-ui-plugins/plugins/core/messaging/q-chat/q-chat.src.js +++ b/qortal-ui-plugins/plugins/core/messaging/q-chat/q-chat.src.js @@ -1,5 +1,9 @@ import { LitElement, html, css } from 'lit'; import { render } from 'lit/html.js'; +import { passiveSupport } from 'passive-events-support/src/utils' +passiveSupport({ + events: ['touchstart'] + }) import { Epml } from '../../../../epml.js'; import { use, get, translate, translateUnsafeHTML, registerTranslateConfig } from 'lit-translate'; import { qchatStyles } from './q-chat-css.src.js' @@ -163,6 +167,7 @@ class Chat extends LitElement { } render() { + console.log('q-chat update') return html`