2021-04-13 21:55:25 +02:00
|
|
|
<template>
|
2025-05-06 12:13:03 +02:00
|
|
|
<message-incoming v-bind="{...$props, ...$attrs}">
|
2021-04-13 21:55:25 +02:00
|
|
|
<div class="bubble">
|
|
|
|
|
<div class="original-message" v-if="inReplyToText">
|
2023-11-06 15:28:26 +00:00
|
|
|
<div class="original-message-sender">{{ inReplyToSender }}</div>
|
2021-05-06 23:12:02 +02:00
|
|
|
<div
|
|
|
|
|
class="original-message-text"
|
|
|
|
|
v-html="linkify($sanitize(inReplyToText))"
|
|
|
|
|
/>
|
2021-04-13 21:55:25 +02:00
|
|
|
</div>
|
2023-11-06 15:28:26 +00:00
|
|
|
|
2021-04-13 21:55:25 +02:00
|
|
|
<div class="message">
|
2023-12-04 11:29:23 +01:00
|
|
|
<ThumbnailView class="clickable" v-on:itemclick="$emit('download')" :item="{ event: event, src: null }" />
|
2021-04-13 21:55:25 +02:00
|
|
|
<span class="edit-marker" v-if="event.replacingEventId()"
|
2022-02-13 11:31:41 +02:00
|
|
|
>{{ $t('message.edited') }}</span
|
2021-04-13 21:55:25 +02:00
|
|
|
>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2021-05-07 09:15:15 +02:00
|
|
|
</message-incoming>
|
2021-04-13 21:55:25 +02:00
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
2023-12-04 11:29:23 +01:00
|
|
|
import ThumbnailView from '../file_mode/ThumbnailView.vue';
|
2021-05-07 09:15:15 +02:00
|
|
|
import MessageIncoming from "./MessageIncoming.vue";
|
2021-04-13 21:55:25 +02:00
|
|
|
|
|
|
|
|
export default {
|
2021-05-07 09:15:15 +02:00
|
|
|
extends: MessageIncoming,
|
2023-12-04 11:29:23 +01:00
|
|
|
components: { MessageIncoming, ThumbnailView }
|
2021-04-13 21:55:25 +02:00
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="scss">
|
2025-05-13 22:38:10 +02:00
|
|
|
@use "@/assets/css/chat.scss" as *;
|
2021-04-13 21:55:25 +02:00
|
|
|
</style>
|