Merge fix

This commit is contained in:
Bohdan Horbeshko 2025-06-14 11:21:39 -04:00
parent 1811f7622a
commit 26eafbba3d

View file

@ -1728,7 +1728,7 @@ func (c *Client) SendMessageToGateway(chatId int64, message *client.Message, id
var ignorePrefix bool var ignorePrefix bool
if oobSwap { if oobSwap {
if text == "" || message.Content.MessageContentType() == client.TypeMessageSticker { if text == "" || message.Content.MessageContentType() == client.TypeMessageSticker {
chatType, err := c.GetChatType(chatId) chatType, _, err := c.GetChatType(chatId)
ignorePrefix = err == nil && (chatType != ChatTypeBasicGroup && chatType != ChatTypeSupergroup) && c.isCarbonsEnabled() ignorePrefix = err == nil && (chatType != ChatTypeBasicGroup && chatType != ChatTypeSupergroup) && c.isCarbonsEnabled()
} }
} }