automatically ignore known forwarded addresses, fixes #64

This commit is contained in:
Aine
2023-09-18 12:35:37 +03:00
parent e90925eceb
commit 60b4386dd8
187 changed files with 4070 additions and 2667 deletions

View File

@@ -23,6 +23,8 @@ const (
AuthTypeAppservice AuthType = "m.login.application_service"
AuthTypeSynapseJWT AuthType = "org.matrix.login.jwt"
AuthTypeDevtureSharedSecret AuthType = "com.devture.shared_secret_auth"
)
type IdentifierType string
@@ -331,6 +333,7 @@ type ReqPutPushRule struct {
Pattern string `json:"pattern"`
}
// Deprecated: MSC2716 was abandoned
type ReqBatchSend struct {
PrevEventID id.EventID `json:"-"`
BatchID id.BatchID `json:"-"`
@@ -342,6 +345,16 @@ type ReqBatchSend struct {
Events []*event.Event `json:"events"`
}
type ReqBeeperBatchSend struct {
// ForwardIfNoMessages should be set to true if the batch should be forward
// backfilled if there are no messages currently in the room.
ForwardIfNoMessages bool `json:"forward_if_no_messages"`
Forward bool `json:"forward"`
SendNotification bool `json:"send_notification"`
MarkReadBy id.UserID `json:"mark_read_by,omitempty"`
Events []*event.Event `json:"events"`
}
type ReqSetReadMarkers struct {
Read id.EventID `json:"m.read,omitempty"`
ReadPrivate id.EventID `json:"m.read.private,omitempty"`