Merge branch '591-feedback-on-channels-implementation-29-apr-2024' into 'dev'
Make channels unencrypted See merge request keanuapp/keanuapp-weblite!297
This commit is contained in:
commit
0fa231b52c
4 changed files with 51 additions and 8 deletions
|
|
@ -140,6 +140,7 @@
|
||||||
"direct_private_chat": "Direct Message",
|
"direct_private_chat": "Direct Message",
|
||||||
"join_channel": "All set! Invite people to join you: {link}",
|
"join_channel": "All set! Invite people to join you: {link}",
|
||||||
"info_retention": "🕓 Messages sent within {time} are viewable by anyone with the link.",
|
"info_retention": "🕓 Messages sent within {time} are viewable by anyone with the link.",
|
||||||
|
"info_retention_user": "🕓 Messages older than {time} will be deleted from the history.",
|
||||||
"change": "Change"
|
"change": "Change"
|
||||||
},
|
},
|
||||||
"new_room": {
|
"new_room": {
|
||||||
|
|
|
||||||
|
|
@ -54,6 +54,9 @@
|
||||||
|
|
||||||
<component :is="roomWelcomeHeader" v-on:close="closeRoomWelcomeHeader"></component>
|
<component :is="roomWelcomeHeader" v-on:close="closeRoomWelcomeHeader"></component>
|
||||||
|
|
||||||
|
<!-- If we have a retention timer, it means we have active message retention. Show header. -->
|
||||||
|
<WelcomeHeaderChannelUser v-if="retentionTimer && !roomWelcomeHeader" />
|
||||||
|
|
||||||
<div v-for="(event, index) in filteredEvents" :key="event.getId()" :eventId="event.getId()">
|
<div v-for="(event, index) in filteredEvents" :key="event.getId()" :eventId="event.getId()">
|
||||||
<!-- DAY Marker, shown for every new day in the timeline -->
|
<!-- DAY Marker, shown for every new day in the timeline -->
|
||||||
<div v-if="showDayMarkerBeforeEvent(event) && !!componentForEvent(event, isForExport = false)" class="day-marker"><div class="line"></div><div class="text">{{ dayForEvent(event) }}</div><div class="line"></div></div>
|
<div v-if="showDayMarkerBeforeEvent(event) && !!componentForEvent(event, isForExport = false)" class="day-marker"><div class="line"></div><div class="text">{{ dayForEvent(event) }}</div><div class="line"></div></div>
|
||||||
|
|
@ -346,6 +349,7 @@ import RoomInfoBottomSheet from "./RoomInfoBottomSheet";
|
||||||
import WelcomeHeaderRoom from "./welcome_headers/WelcomeHeaderRoom";
|
import WelcomeHeaderRoom from "./welcome_headers/WelcomeHeaderRoom";
|
||||||
import WelcomeHeaderDirectChat from "./welcome_headers/WelcomeHeaderDirectChat";
|
import WelcomeHeaderDirectChat from "./welcome_headers/WelcomeHeaderDirectChat";
|
||||||
import WelcomeHeaderChannel from "./welcome_headers/WelcomeHeaderChannel";
|
import WelcomeHeaderChannel from "./welcome_headers/WelcomeHeaderChannel";
|
||||||
|
import WelcomeHeaderChannelUser from "./welcome_headers/WelcomeHeaderChannelUser";
|
||||||
import NoHistoryRoomWelcomeHeader from "./NoHistoryRoomWelcomeHeader.vue";
|
import NoHistoryRoomWelcomeHeader from "./NoHistoryRoomWelcomeHeader.vue";
|
||||||
import MessageOperationsBottomSheet from "./MessageOperationsBottomSheet";
|
import MessageOperationsBottomSheet from "./MessageOperationsBottomSheet";
|
||||||
import StickerPickerBottomSheet from "./StickerPickerBottomSheet";
|
import StickerPickerBottomSheet from "./StickerPickerBottomSheet";
|
||||||
|
|
@ -413,6 +417,7 @@ export default {
|
||||||
FileDropLayout,
|
FileDropLayout,
|
||||||
UserProfileDialog,
|
UserProfileDialog,
|
||||||
PurgeRoomDialog,
|
PurgeRoomDialog,
|
||||||
|
WelcomeHeaderChannelUser
|
||||||
},
|
},
|
||||||
|
|
||||||
data() {
|
data() {
|
||||||
|
|
|
||||||
|
|
@ -145,18 +145,18 @@ export default {
|
||||||
preset: "public_chat",
|
preset: "public_chat",
|
||||||
initial_state:
|
initial_state:
|
||||||
[
|
[
|
||||||
{
|
// {
|
||||||
type: "m.room.encryption",
|
// type: "m.room.encryption",
|
||||||
state_key: "",
|
// state_key: "",
|
||||||
content: {
|
// content: {
|
||||||
algorithm: "m.megolm.v1.aes-sha2",
|
// algorithm: "m.megolm.v1.aes-sha2",
|
||||||
},
|
// },
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
type: "m.room.history_visibility",
|
type: "m.room.history_visibility",
|
||||||
state_key: "",
|
state_key: "",
|
||||||
content: {
|
content: {
|
||||||
history_visibility: "joined"
|
history_visibility: "shared"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
||||||
37
src/components/welcome_headers/WelcomeHeaderChannelUser.vue
Normal file
37
src/components/welcome_headers/WelcomeHeaderChannelUser.vue
Normal file
|
|
@ -0,0 +1,37 @@
|
||||||
|
<template>
|
||||||
|
<div class="created-room-welcome-header">
|
||||||
|
<div class="mt-2" v-if="roomMessageRetention() > 0">
|
||||||
|
<i18n path="room_welcome.info_retention_user" tag="span">
|
||||||
|
<template v-slot:time>
|
||||||
|
<b>{{ messageRetentionDisplay }}</b>
|
||||||
|
</template>
|
||||||
|
</i18n>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import roomInfoMixin from "../roomInfoMixin";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "WelcomeHeaderChannelUser",
|
||||||
|
mixins: [roomInfoMixin],
|
||||||
|
components: {
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
onMessageRetention(ignoredretention) {
|
||||||
|
this.updateMessageRetention();
|
||||||
|
},
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss">
|
||||||
|
@import "@/assets/css/chat.scss";
|
||||||
|
</style>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue