Work on read markers

Don't update read marker for outgoing events (they might be local echoes etc).
This commit is contained in:
N-Pex 2021-03-03 12:29:55 +01:00
parent ae09d3a78a
commit 7cf9d5b949
3 changed files with 107 additions and 25 deletions

View 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>