From 0a7e9bc95e0a23330b106b9fa9b1d96a68b36334 Mon Sep 17 00:00:00 2001 From: Eduard Kuzmenko Date: Sun, 18 Jul 2021 14:12:53 +0300 Subject: [PATCH] Fix pinned messages border again --- src/components/chat/pinnedMessageBorder.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/chat/pinnedMessageBorder.ts b/src/components/chat/pinnedMessageBorder.ts index 99f65e5f..14c3bc09 100644 --- a/src/components/chat/pinnedMessageBorder.ts +++ b/src/components/chat/pinnedMessageBorder.ts @@ -123,7 +123,7 @@ export default class PinnedMessageBorder { } // return (index + 1) * barHeight + index * GAP; - return index * barHeight - (count - index - 1) * GAP; + return (index - 2) * barHeight + index * GAP; //return (barHeight + GAP * 2) / 2 + (index - 2) * (barHeight + GAP); };