From 338cbac563c90c48736d6faefe6d70a4d00e017c Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Fri, 4 Nov 2022 15:20:15 -0700 Subject: [PATCH] revert --- package.json | 2 +- packages/client/src/pages/messaging/index.vue | 296 +++++++++--------- 2 files changed, 146 insertions(+), 152 deletions(-) diff --git a/package.json b/package.json index 540376a15..6c667997d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "calckey", - "version": "12.119.0-calc.7-rc.3", + "version": "12.119.0-calc.7-rc.4", "codename": "aqua", "repository": { "type": "git", diff --git a/packages/client/src/pages/messaging/index.vue b/packages/client/src/pages/messaging/index.vue index db41654d9..aeabfb0d4 100644 --- a/packages/client/src/pages/messaging/index.vue +++ b/packages/client/src/pages/messaging/index.vue @@ -6,37 +6,35 @@ {{ i18n.ts.startMessaging }}
- - -
- -
- {{ message.group.name }} - -
-
- - - - @{{ acct(isMe(message) ? message.recipient : message.user) }} - -
-
-

- {{ i18n.ts.you }}: - {{ message.text }} - 📎 -

-
+ +
+ +
+ {{ message.group.name }} + +
+
+ + @{{ acct(isMe(message) ? message.recipient : message.user) }} + +
+
+

+ {{ i18n.ts.you }}: + {{ message.text }} + 📎 +

- - +
+
Info @@ -69,10 +67,6 @@ let connection = $ref(null); const getAcct = Acct.toString; -const props = defineProps<{ - pagination: any; -}>(); - function isMe(message) { return message.userId === $i.id; } @@ -81,7 +75,7 @@ function onMessage(message) { if (message.recipientId) { messages = messages.filter(m => !( (m.recipientId === message.recipientId && m.userId === message.userId) || - (m.recipientId === message.userId && m.userId === message.recipientId))); + (m.recipientId === message.userId && m.userId === message.recipientId))); messages.unshift(message); } else if (message.groupId) { @@ -172,54 +166,45 @@ definePageMetadata({ }); - +