mirror of
https://github.com/status-im/go-waku.git
synced 2025-01-27 14:05:18 +00:00
fix: handle missing pagingInfo
This commit is contained in:
parent
87ce20d38e
commit
7443daea4c
@ -256,10 +256,13 @@ func (store *WakuStore) Query(ctx context.Context, query Query, opts ...HistoryR
|
||||
result := &Result{
|
||||
Messages: response.Messages,
|
||||
query: q,
|
||||
cursor: response.PagingInfo.Cursor,
|
||||
peerId: params.selectedPeer,
|
||||
}
|
||||
|
||||
if response.PagingInfo != nil {
|
||||
result.cursor = response.PagingInfo.Cursor
|
||||
}
|
||||
|
||||
return result, nil
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user