Apply hideids to carbons in groupchats

This commit is contained in:
Bohdan Horbeshko 2025-05-05 17:54:56 -04:00
parent 9378fa4991
commit 68c3bece71
3 changed files with 4 additions and 3 deletions

View file

@ -2,7 +2,7 @@
COMMIT := $(shell git rev-parse --short HEAD) COMMIT := $(shell git rev-parse --short HEAD)
TD_COMMIT := "5bbfc1cf5dab94f82e02f3430ded7241d4653551" TD_COMMIT := "5bbfc1cf5dab94f82e02f3430ded7241d4653551"
VERSION := "v1.12.0" VERSION := "v1.12.1"
MAKEOPTS := "-j4" MAKEOPTS := "-j4"
all: all:

View file

@ -16,7 +16,7 @@ import (
goxmpp "gosrc.io/xmpp" goxmpp "gosrc.io/xmpp"
) )
var version string = "1.12.0" var version string = "1.12.1"
var commit string var commit string
var sm *goxmpp.StreamManager var sm *goxmpp.StreamManager

View file

@ -1110,7 +1110,8 @@ func (c *Client) messageToPrefix(message *client.Message, previewString string,
} }
} }
} }
if !isPM || !c.Session.HideIds { // with hideids options enabled, hide the id for everything but non-carbons in group chats
if (!isPM && !(c.isCarbonsEnabled() && message.IsOutgoing)) || !c.Session.HideIds {
prefix = append(prefix, directionChar+strconv.FormatInt(message.Id, 10)) prefix = append(prefix, directionChar+strconv.FormatInt(message.Id, 10))
} }
// show sender in group chats // show sender in group chats