feat: Shows error message with retry for widget messages (#3594)

- Adds error message retry option for widget bubbles
- Adds a fallback for widget images with file type bubble
This commit is contained in:
Nithin David Thomas 2021-12-21 12:02:43 +05:30 committed by GitHub
parent 0130e08016
commit 307118b235
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 168 additions and 34 deletions

View file

@ -6,7 +6,12 @@
class="image"
>
<div class="wrap">
<img :src="thumb" alt="Picture message" />
<img
:src="thumb"
alt="Picture message"
@click="onClick"
@error="onImgError"
/>
<span class="time">{{ readableTime }}</span>
</div>
</a>
@ -15,6 +20,11 @@
<script>
export default {
props: ['url', 'thumb', 'readableTime'],
methods: {
onImgError() {
this.$emit('error');
},
},
};
</script>
<style lang="scss" scoped>