{{scopedProps.message.data.meta}}
@@ -196,7 +197,10 @@ export default {
const m = this.messageList.find(m => m.id === message.id);
m.type = 'system';
m.data.text = 'This message has been removed';
- }
+ },
+ downloadMessage(message){
+ console.log("try to download Message")
+ }
},
like(id){
const m = this.messageList.findIndex(m => m.id === id);
diff --git a/src/ChatWindow.vue b/src/ChatWindow.vue
index 383d2154..c24bbcb7 100644
--- a/src/ChatWindow.vue
+++ b/src/ChatWindow.vue
@@ -28,6 +28,7 @@
:messageStyling="messageStyling"
@scrollToTop="$emit('scrollToTop')"
@remove="$emit('remove', $event)"
+ @download="$emit('download', $event)"
>
{{data.meta}}