feat: Show errors for message bubbles in dashboard (#3585)

This commit is contained in:
Nithin David Thomas 2021-12-21 00:07:33 +05:30 committed by GitHub
parent 6fe5484119
commit 83655f4ca4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 110 additions and 53 deletions

View file

@ -369,7 +369,10 @@ export default {
const messagePayload = this.getMessagePayload(newMessage);
this.clearMessage();
try {
await this.$store.dispatch('sendMessage', messagePayload);
await this.$store.dispatch(
'createPendingMessageAndSend',
messagePayload
);
this.$emit(BUS_EVENTS.SCROLL_TO_MESSAGE);
} catch (error) {
const errorMessage =