mirror of
https://github.com/status-im/status-go.git
synced 2025-02-17 01:08:12 +00:00
[#12783] fix index out of range when there are no filters
This commit is contained in:
parent
4f4725a630
commit
62a0439234
@ -288,7 +288,7 @@ func (m *Messenger) syncFilters(filters []*transport.Filter) (*MessengerResponse
|
||||
prioritizedBatches := getPrioritizedBatches()
|
||||
currentBatch := 0
|
||||
|
||||
if filters[0].Priority == 0 {
|
||||
if len(filters) == 0 || filters[0].Priority == 0 {
|
||||
currentBatch = len(prioritizedBatches)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user