Skip to content

Commit 51dcc5e

Browse files
authored
send: add edit attribute to pin in chat messages (#1106)
1 parent e46d104 commit 51dcc5e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

send.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1046,6 +1046,8 @@ func getEditAttribute(msg *waE2E.Message) types.EditAttribute {
10461046
return types.EditAttributeSenderRevoke
10471047
case msg.KeepInChatMessage != nil && msg.KeepInChatMessage.GetKey().GetFromMe() && msg.KeepInChatMessage.GetKeepType() == waE2E.KeepType_UNDO_KEEP_FOR_ALL:
10481048
return types.EditAttributeSenderRevoke
1049+
case msg.PinInChatMessage != nil:
1050+
return types.EditAttributePinInChat
10491051
}
10501052
return types.EditAttributeEmpty
10511053
}

0 commit comments

Comments
 (0)