Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Content ¶
type Content struct { *gtk.Box // contains filtered or unexported fields }
Content is a message content widget.
func New ¶
func New(ctx context.Context, ev *event.RoomMessageEvent) *Content
New parses the given room message event and renders it into a Content widget.
func (*Content) EditedTimestamp ¶
EditedTimestamp returns either the Matrix timestamp if the message content has been edited or false if not.
func (*Content) SetExtraMenu ¶
func (c *Content) SetExtraMenu(menu gio.MenuModeller)
SetExtraMenu sets the extra menu for the message content.
type MessageBody ¶
type MessageBody struct { Body string `json:"body"` MsgType event.MessageType `json:"msgtype"` Format event.MessageFormat `json:"format,omitempty"` FormattedBody string `json:"formatted_body,omitempty"` }
func MsgBody ¶
func MsgBody(ev *event.RoomMessageEvent) (m MessageBody, edited bool)
MsgBody parses the message event and accounts for edited ones.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.