Allows invites to be sent to offline remotes (#28176)

* Allows invites to be sent to offline remotes

Invites sent to remotes marked as offline will be stored as pending,
and when the remote comes back online, it will process the invites as
part of the synchronization process.

* Update condition name for excluding confirmed invites
Этот коммит содержится в:
Miguel de la Cruz
2024-09-13 10:54:51 +02:00
коммит произвёл GitHub
родитель d879927876
Коммит f41d54b336
7 изменённых файлов: 117 добавлений и 16 удалений

Просмотреть файл

@@ -33,6 +33,8 @@ const (
var (
validRemoteNameChars = regexp.MustCompile(`^[a-zA-Z0-9\.\-\_]+$`)
ErrOfflineRemote = errors.New("remote is offline")
)
type Bitmask uint32

Просмотреть файл

@@ -261,12 +261,13 @@ type SharedChannelFilterOpts struct {
}
type SharedChannelRemoteFilterOpts struct {
ChannelId string
RemoteId string
InclUnconfirmed bool
ExcludeHome bool
ExcludeRemote bool
IncludeDeleted bool
ChannelId string
RemoteId string
IncludeUnconfirmed bool
ExcludeConfirmed bool
ExcludeHome bool
ExcludeRemote bool
IncludeDeleted bool
}
// SyncMsg represents a change in content (post add/edit/delete, reaction add/remove, users).