From 2d414f1513608535214a152dd6b430f5e650afd0 Mon Sep 17 00:00:00 2001 From: Gianluca Iavicoli Date: Sun, 29 Mar 2026 04:59:39 +0200 Subject: [PATCH] send: add PinInChatMessage case to getEditAttribute --- send.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/send.go b/send.go index 3954e1538..15e9e03f5 100644 --- a/send.go +++ b/send.go @@ -1033,6 +1033,8 @@ func getEditAttribute(msg *waE2E.Message) types.EditAttribute { return types.EditAttributeSenderRevoke case msg.KeepInChatMessage != nil && msg.KeepInChatMessage.GetKey().GetFromMe() && msg.KeepInChatMessage.GetKeepType() == waE2E.KeepType_UNDO_KEEP_FOR_ALL: return types.EditAttributeSenderRevoke + case msg.PinInChatMessage != nil: + return types.EditAttributePinInChat } return types.EditAttributeEmpty }