Skip to content

Commit

Permalink
Add fields for beeper galleries
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Sep 2, 2023
1 parent 57d46e6 commit 691b96a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion event/message.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ const (
MsgFile MessageType = "m.file"

MsgVerificationRequest MessageType = "m.key.verification.request"

MsgBeeperGallery MessageType = "com.beeper.gallery"
)

// Format specifies the format of the formatted_body in m.room.message events.
Expand Down Expand Up @@ -110,7 +112,10 @@ type MessageEventContent struct {

replyFallbackRemoved bool

MessageSendRetry *BeeperRetryMetadata `json:"com.beeper.message_send_retry,omitempty"`
MessageSendRetry *BeeperRetryMetadata `json:"com.beeper.message_send_retry,omitempty"`
BeeperGalleryImages []*MessageEventContent `json:"com.beeper.gallery.images,omitempty"`
BeeperGalleryCaption string `json:"com.beeper.gallery.caption,omitempty"`
BeeperGalleryCaptionHTML string `json:"com.beeper.gallery.caption_html,omitempty"`
}

func (content *MessageEventContent) GetRelatesTo() *RelatesTo {
Expand Down

0 comments on commit 691b96a

Please sign in to comment.