mirror of
https://dev.narayana.im/narayana/telegabber.git
synced 2026-08-05 04:07:07 +00:00
Apply hideids to carbons in groupchats
This commit is contained in:
parent
9378fa4991
commit
68c3bece71
3 changed files with 4 additions and 3 deletions
2
Makefile
2
Makefile
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
COMMIT := $(shell git rev-parse --short HEAD)
|
||||
TD_COMMIT := "5bbfc1cf5dab94f82e02f3430ded7241d4653551"
|
||||
VERSION := "v1.12.0"
|
||||
VERSION := "v1.12.1"
|
||||
MAKEOPTS := "-j4"
|
||||
|
||||
all:
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ import (
|
|||
goxmpp "gosrc.io/xmpp"
|
||||
)
|
||||
|
||||
var version string = "1.12.0"
|
||||
var version string = "1.12.1"
|
||||
var commit string
|
||||
|
||||
var sm *goxmpp.StreamManager
|
||||
|
|
|
|||
|
|
@ -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))
|
||||
}
|
||||
// show sender in group chats
|
||||
|
|
|
|||
Loading…
Reference in a new issue