Documentation ¶
Index ¶
- func CanConvertSignal(dm *signalpb.DataMessage) bool
- type MessageConverter
- func (mc *MessageConverter) ConvertDisappearingTimerChangeToMatrix(ctx context.Context, timer uint32, timerVersion *uint32, updatePortal bool) *bridgev2.ConvertedMessagePart
- func (mc *MessageConverter) ToMatrix(ctx context.Context, client *signalmeow.Client, portal *bridgev2.Portal, ...) *bridgev2.ConvertedMessage
- func (mc *MessageConverter) ToSignal(ctx context.Context, client *signalmeow.Client, portal *bridgev2.Portal, ...) (*signalpb.DataMessage, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CanConvertSignal ¶
func CanConvertSignal(dm *signalpb.DataMessage) bool
Types ¶
type MessageConverter ¶
type MessageConverter struct { Bridge *bridgev2.Bridge SignalFmtParams *signalfmt.FormatParams MatrixFmtParams *matrixfmt.HTMLParser MaxFileSize int64 LocationFormat string }
func NewMessageConverter ¶
func NewMessageConverter(br *bridgev2.Bridge, locationFormat string) *MessageConverter
func (*MessageConverter) ConvertDisappearingTimerChangeToMatrix ¶
func (mc *MessageConverter) ConvertDisappearingTimerChangeToMatrix(ctx context.Context, timer uint32, timerVersion *uint32, updatePortal bool) *bridgev2.ConvertedMessagePart
func (*MessageConverter) ToMatrix ¶
func (mc *MessageConverter) ToMatrix( ctx context.Context, client *signalmeow.Client, portal *bridgev2.Portal, intent bridgev2.MatrixAPI, dm *signalpb.DataMessage, ) *bridgev2.ConvertedMessage
func (*MessageConverter) ToSignal ¶
func (mc *MessageConverter) ToSignal( ctx context.Context, client *signalmeow.Client, portal *bridgev2.Portal, evt *event.Event, content *event.MessageEventContent, relaybotFormatted bool, replyTo *database.Message, ) (*signalpb.DataMessage, error)
Click to show internal directories.
Click to hide internal directories.