Merge branch 'master' into muc

This commit is contained in:
Bohdan Horbeshko 2025-05-06 18:29:01 -04:00
commit c6ca9c02c8

View file

@ -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)) prefix = append(prefix, directionChar+strconv.FormatInt(message.Id, 10))
} }
// show sender in group chats // show sender in group chats