From 1cc1b8a1b7c4e9594b6725fe2f9aae09d8e6be92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Tinkl?= Date: Wed, 1 Feb 2023 12:58:18 +0100 Subject: [PATCH] fix: '@everyone' in the pinned messages leads to 'qrc:/app/mainui/1' - make the `href` point to `#` to prevent Qt from resolving the empty URL as if it were a relative link - prepend the at sign (`@`) to the mention tag, just like Discord and `@everyone` else :) Fixes #9364 --- src/app_service/service/message/service.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app_service/service/message/service.nim b/src/app_service/service/message/service.nim index 4f4692f74f..83852ac0ed 100644 --- a/src/app_service/service/message/service.nim +++ b/src/app_service/service/message/service.nim @@ -709,12 +709,12 @@ proc renderInline(self: Service, parsedText: ParsedText, communityChats: seq[Cha if pair[1] == "@" & id: tag = pair[0] break - result = fmt("{tag}") + result = fmt("{tag}") else: if isCompressedPubKey(id): id = status_accounts.decompressPk(id).result let contactDto = self.contactService.getContactById(id) - result = fmt("{contactDto.userDefaultDisplayName()}") + result = fmt("@{contactDto.userDefaultDisplayName()}") of PARSED_TEXT_CHILD_TYPE_STATUS_TAG: result = fmt("#{value}") for chat in communityChats: