Work on read markers
Don't update read marker for outgoing events (they might be local echoes etc).
This commit is contained in:
parent
ae09d3a78a
commit
7cf9d5b949
3 changed files with 107 additions and 25 deletions
34
src/components/messages/RoomHistoryVisibility.vue
Normal file
34
src/components/messages/RoomHistoryVisibility.vue
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
<template>
|
||||
<!-- ROOM AVATAR CHANGED -->
|
||||
<div class="statusEvent">
|
||||
{{ stateEventDisplayName(event) }} made room history {{ history(event) }}
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import messageMixin from "./messageMixin";
|
||||
|
||||
export default {
|
||||
mixins: [messageMixin],
|
||||
methods: {
|
||||
history(event) {
|
||||
const visibility = event.getContent().history_visibility;
|
||||
switch (visibility) {
|
||||
case "world_readable":
|
||||
return "readable by anyone";
|
||||
case "shared":
|
||||
return "readable to all members in the room";
|
||||
case "invited":
|
||||
return "readable to members from when they were invited";
|
||||
case "joined":
|
||||
return "readable to members from when they joined";
|
||||
}
|
||||
return visibility;
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
@import "@/assets/css/chat.scss";
|
||||
</style>
|
||||
Loading…
Add table
Add a link
Reference in a new issue