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
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
d879927876
Коммит
f41d54b336
@@ -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})
|
||||
}
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user