Show member list of seenby

This commit is contained in:
10G Meow 2023-06-25 17:12:29 +03:00
parent 37c254f8e1
commit 5962c8aedc
9 changed files with 141 additions and 43 deletions

View file

@ -1,6 +1,8 @@
import QuickReactions from "./QuickReactions.vue";
import * as linkify from 'linkifyjs';
import linkifyHtml from 'linkify-html';
import utils from "../../plugins/utils"
linkify.options.defaults.className = "link";
linkify.options.defaults.target = { url: "_blank" };
@ -39,6 +41,7 @@ export default {
event: {},
inReplyToEvent: null,
inReplyToSender: null,
utils
};
},
mounted() {
@ -231,22 +234,6 @@ export default {
return false;
},
formatTime(time) {
const date = new Date();
date.setTime(time);
const today = new Date();
if (
date.getDate() == today.getDate() &&
date.getMonth() == today.getMonth() &&
date.getFullYear() == today.getFullYear()
) {
// For today, skip the date part
return date.toLocaleTimeString();
}
return date.toLocaleString();
},
formatTimeAgo(time) {
const date = new Date();
date.setTime(time);