This commit is contained in:
ThatOneCalculator 2022-11-06 13:08:43 -08:00
parent b1eb1c4855
commit ec2040a840
3 changed files with 7 additions and 9 deletions

View File

@ -1,6 +1,6 @@
{
"name": "calckey",
"version": "12.119.0-calc.8-rc.1",
"version": "12.119.0-calc.8-rc.2",
"codename": "aqua",
"repository": {
"type": "git",

View File

@ -1,7 +1,7 @@
<template>
<MkA
tabindex="-1"
class="rivslvers"
tabindex="-1"
:class="{
isMe: isMe(message),
isRead: message.groupId ? message.reads.includes($i.id) : message.isRead,
@ -14,7 +14,7 @@
)}`
"
>
<div>
<div class="message">
<MkAvatar
class="avatar"
:user="
@ -38,9 +38,7 @@
<div class="body">
<p class="text">
<span v-if="isMe(message)" class="me">{{ i18n.ts.you }}: </span>
<span v-if="message.text != null && message.text.length > 0">{{
message.text
}}</span>
<Mfm v-if="message.text != null && message.text.length > 0" :text="message.text"/>
<span v-else> 📎</span>
</p>
</div>

View File

@ -98,14 +98,14 @@ let connection = $ref(null);
const dmsPagination = {
endpoint: 'messaging/history' as const,
limit: 20,
limit: 15,
params: {
group: false,
},
};
const groupsPagination = {
endpoint: 'messaging/history' as const,
limit: 10,
limit: 5,
params: {
group: true,
},
@ -206,7 +206,7 @@ onMounted(() => {
connection.on('message', onMessage);
connection.on('read', onRead);
os.api('messaging/history', { group: false, limit: 30 }).then(userMessages => {
os.api('messaging/history', { group: false, limit: 5 }).then(userMessages => {
os.api('messaging/history', { group: true, limit: 5 }).then(groupMessages => {
const _messages = userMessages.concat(groupMessages);
_messages.sort((a, b) => new Date(b.createdAt).getTime() - new Date(a.createdAt).getTime());