mirror of
https://dev.narayana.im/narayana/telegabber.git
synced 2026-08-05 12:17:06 +00:00
Merge branch 'master' into muc
This commit is contained in:
commit
86d8f0903a
1 changed files with 2 additions and 4 deletions
|
|
@ -1721,10 +1721,8 @@ 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 {
|
||||||
isPM, _, err := c.IsPM(chatId)
|
chatType, err := c.GetChatType(chatId)
|
||||||
if err == nil {
|
ignorePrefix = err == nil && (chatType != ChatTypeBasicGroup && chatType != ChatTypeSupergroup) && c.isCarbonsEnabled()
|
||||||
ignorePrefix = isPM && c.isCarbonsEnabled()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue