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 удалений

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

@@ -495,7 +495,9 @@ func (s SqlSharedChannelStore) GetRemotes(offset, limit int, opts model.SharedCh
query = query.Where(sq.Eq{"scr.RemoteId": opts.RemoteId})
}
if !opts.InclUnconfirmed {
if opts.ExcludeConfirmed {
query = query.Where(sq.Eq{"scr.IsInviteConfirmed": false})
} else if !opts.IncludeUnconfirmed {
query = query.Where(sq.Eq{"scr.IsInviteConfirmed": true})
}