dkforest

A forum and chat platform (onion)
git clone https://git.dasho.dev/n0tr1v/dkforest.git
Log | Files | Refs | LICENSE

commit a68bd55f6ddbcbe81bddf005bcc07acc875ce265
parent 4a6b8ad450dff8143005ea9544684882e2ad7eac
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Tue, 24 Jan 2023 11:22:26 -0800

get inbox when your message is being quoted

Diffstat:
Mpkg/web/handlers/api/v1/msgInterceptor.go | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/pkg/web/handlers/api/v1/msgInterceptor.go b/pkg/web/handlers/api/v1/msgInterceptor.go @@ -82,6 +82,9 @@ func ProcessRawMessage(in, roomKey string, authUserID database.UserID, roomID da html = emojiReplacer.Replace(html) html = styleQuote(html, quoted) html = appendUploadLink(html, upload) + if quoted != nil { // Add quoted message owner for inboxes + taggedUsersIDsMap[quoted.UserID] = quoted.User + } return html, taggedUsersIDsMap }