Versions in this module Expand all Collapse all v0 v0.21.1 Oct 16, 2024 Changes in this version type MessageRemove + OnlyForMe bool + func (evt *MessageRemove) DeleteOnlyForMe() bool v0.21.0 Sep 16, 2024 Changes in this version type Message + TransactionID networkid.TransactionID + func (evt *Message[T]) GetTransactionID() networkid.TransactionID v0.20.0 Aug 16, 2024 Changes in this version + type ChatDelete struct + OnlyForMe bool + func (evt *ChatDelete) DeleteOnlyForMe() bool + type ChatInfoChange struct + ChatInfoChange *bridgev2.ChatInfoChange + func (evt *ChatInfoChange) GetChatInfoChange(ctx context.Context) (*bridgev2.ChatInfoChange, error) + type ChatResync struct + BundledBackfillData any + ChatInfo *bridgev2.ChatInfo + CheckNeedsBackfillFunc func(ctx context.Context, latestMessage *database.Message) (bool, error) + GetChatInfoFunc func(ctx context.Context, portal *bridgev2.Portal) (*bridgev2.ChatInfo, error) + LatestMessageTS time.Time + func (evt *ChatResync) CheckNeedsBackfill(ctx context.Context, latestMessage *database.Message) (bool, error) + func (evt *ChatResync) GetBundledBackfillData() any + func (evt *ChatResync) GetChatInfo(ctx context.Context, portal *bridgev2.Portal) (*bridgev2.ChatInfo, error) + type EventMeta struct + CreatePortal bool + LogContext func(c zerolog.Context) zerolog.Context + PortalKey networkid.PortalKey + Sender bridgev2.EventSender + StreamOrder int64 + Timestamp time.Time + Type bridgev2.RemoteEventType + UncertainReceiver bool + func (evt *EventMeta) AddLogContext(c zerolog.Context) zerolog.Context + func (evt *EventMeta) GetPortalKey() networkid.PortalKey + func (evt *EventMeta) GetSender() bridgev2.EventSender + func (evt *EventMeta) GetStreamOrder() int64 + func (evt *EventMeta) GetTimestamp() time.Time + func (evt *EventMeta) GetType() bridgev2.RemoteEventType + func (evt *EventMeta) PortalReceiverIsUncertain() bool + func (evt *EventMeta) ShouldCreatePortal() bool + type MarkUnread struct + Unread bool + func (evt *MarkUnread) GetUnread() bool + type Message struct + ConvertEditFunc func(ctx context.Context, portal *bridgev2.Portal, intent bridgev2.MatrixAPI, ...) (*bridgev2.ConvertedEdit, error) + ConvertMessageFunc func(ctx context.Context, portal *bridgev2.Portal, intent bridgev2.MatrixAPI, ...) (*bridgev2.ConvertedMessage, error) + Data T + HandleExistingFunc func(ctx context.Context, portal *bridgev2.Portal, intent bridgev2.MatrixAPI, ...) (bridgev2.UpsertResult, error) + ID networkid.MessageID + TargetMessage networkid.MessageID + func (evt *Message[T]) ConvertEdit(ctx context.Context, portal *bridgev2.Portal, intent bridgev2.MatrixAPI, ...) (*bridgev2.ConvertedEdit, error) + func (evt *Message[T]) ConvertMessage(ctx context.Context, portal *bridgev2.Portal, intent bridgev2.MatrixAPI) (*bridgev2.ConvertedMessage, error) + func (evt *Message[T]) GetID() networkid.MessageID + func (evt *Message[T]) GetTargetMessage() networkid.MessageID + func (evt *Message[T]) HandleExisting(ctx context.Context, portal *bridgev2.Portal, intent bridgev2.MatrixAPI, ...) (bridgev2.UpsertResult, error) + type MessageRemove struct + TargetMessage networkid.MessageID + func (evt *MessageRemove) GetTargetMessage() networkid.MessageID + type Reaction struct + Emoji string + EmojiID networkid.EmojiID + ExtraContent map[string]any + ReactionDBMeta any + TargetMessage networkid.MessageID + func (evt *Reaction) GetReactionDBMetadata() any + func (evt *Reaction) GetReactionEmoji() (string, networkid.EmojiID) + func (evt *Reaction) GetReactionExtraContent() map[string]any + func (evt *Reaction) GetRemovedEmojiID() networkid.EmojiID + func (evt *Reaction) GetTargetMessage() networkid.MessageID + type ReactionSync struct + Reactions *bridgev2.ReactionSyncData + TargetMessage networkid.MessageID + func (evt *ReactionSync) GetReactions() *bridgev2.ReactionSyncData + func (evt *ReactionSync) GetTargetMessage() networkid.MessageID + type Receipt struct + LastTarget networkid.MessageID + ReadUpTo time.Time + Targets []networkid.MessageID + func (evt *Receipt) GetLastReceiptTarget() networkid.MessageID + func (evt *Receipt) GetReadUpTo() time.Time + func (evt *Receipt) GetReceiptTargets() []networkid.MessageID + type Typing struct + Timeout time.Duration + Type bridgev2.TypingType + func (evt *Typing) GetTimeout() time.Duration + func (evt *Typing) GetTypingType() bridgev2.TypingType