diff --git a/telegram/utils.go b/telegram/utils.go index a3233c7..fe9591e 100644 --- a/telegram/utils.go +++ b/telegram/utils.go @@ -1323,7 +1323,8 @@ func (c *Client) messageToPrefix(message *client.Message, previewString string, } } } - if (!isPM && !c.Session.MUC) || !c.Session.HideIds { + // with hideids options enabled, hide the id for everything but non-carbons in legacy group chats + if (!isPM && !c.Session.MUC && !(c.isCarbonsEnabled() && message.IsOutgoing)) || !c.Session.HideIds { prefix = append(prefix, directionChar+strconv.FormatInt(message.Id, 10)) } // show sender in group chats