keanu-weblite/src/components/messages/MessageOutgoingText.vue
N-Pex 601e0d4a6c Use base classes for message types
This avoids unnecessary duplication of code for "avatar", "sender" etc in the general layout of messages.
2021-05-07 09:15:15 +02:00

34 lines
No EOL
857 B
Vue

<template>
<message-outgoing v-bind="{ ...$props, ...$attrs }">
<div class="bubble">
<div class="original-message" v-if="inReplyToText">
<div class="original-message-sender">
{{ inReplyToSender || "Someone" }} said:
</div>
<div
class="original-message-text"
v-html="linkify($sanitize(inReplyToText))"
/>
</div>
<div class="message">
<span v-html="linkify($sanitize(messageText))" />
<span class="edit-marker" v-if="event.replacingEventId()"
>(edited)</span
>
</div>
</div>
</message-outgoing>
</template>
<script>
import MessageOutgoing from "./MessageOutgoing.vue";
export default {
extends: MessageOutgoing,
components: { MessageOutgoing },
};
</script>
<style lang="scss">
@import "@/assets/css/chat.scss";
</style>