Merge pull request #92 from PhillipLangMartinez/bugfix/sending-error-keep-text
keep message if error
This commit is contained in:
commit
2f4eaee66a
@ -2993,6 +2993,15 @@ class ChatPage extends LitElement {
|
|||||||
let successString = get("blockpage.bcchange15");
|
let successString = get("blockpage.bcchange15");
|
||||||
parentEpml.request('showSnackBar', `${successString}`);
|
parentEpml.request('showSnackBar', `${successString}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.closeEditMessageContainer()
|
||||||
|
this.closeRepliedToContainer()
|
||||||
|
this.openForwardOpen = false
|
||||||
|
this.forwardActiveChatHeadUrl = {
|
||||||
|
url: "",
|
||||||
|
name: "",
|
||||||
|
selected: false
|
||||||
|
}
|
||||||
} else if (response.error) {
|
} else if (response.error) {
|
||||||
parentEpml.request('showSnackBar', response.message);
|
parentEpml.request('showSnackBar', response.message);
|
||||||
} else {
|
} else {
|
||||||
@ -3004,14 +3013,7 @@ class ChatPage extends LitElement {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
this.isLoading = false;
|
this.isLoading = false;
|
||||||
this.closeEditMessageContainer()
|
|
||||||
this.closeRepliedToContainer()
|
|
||||||
this.openForwardOpen = false
|
|
||||||
this.forwardActiveChatHeadUrl = {
|
|
||||||
url: "",
|
|
||||||
name: "",
|
|
||||||
selected: false
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
if (isForward) {
|
if (isForward) {
|
||||||
|
@ -874,6 +874,10 @@ class ChatMenu extends LitElement {
|
|||||||
class=${`menu-icon ${!this.firstMessageInChat ? "tooltip" : ""}`}
|
class=${`menu-icon ${!this.firstMessageInChat ? "tooltip" : ""}`}
|
||||||
data-text="${translate("blockpage.bcchange14")}"
|
data-text="${translate("blockpage.bcchange14")}"
|
||||||
@click="${() => {
|
@click="${() => {
|
||||||
|
if (this.version === '0') {
|
||||||
|
this.versionErrorSnack()
|
||||||
|
return
|
||||||
|
}
|
||||||
this.messageForwardFunc()
|
this.messageForwardFunc()
|
||||||
}}">
|
}}">
|
||||||
<vaadin-icon icon="vaadin:arrow-forward" slot="icon"></vaadin-icon>
|
<vaadin-icon icon="vaadin:arrow-forward" slot="icon"></vaadin-icon>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user