mirror of https://github.com/status-im/go-waku.git
fix: indirect access to content topic
This commit is contained in:
parent
0a0542324c
commit
be168ebe3f
|
@ -148,7 +148,7 @@ func (w *WakuStore) FindMessages(query *protocol.HistoryQuery) *protocol.History
|
|||
// data holds IndexedWakuMessage whose topics match the query
|
||||
var data []IndexedWakuMessage
|
||||
for _, indexedMsg := range w.messages {
|
||||
if contains(query.Topics, *indexedMsg.msg.ContentTopic) {
|
||||
if contains(query.Topics, indexedMsg.msg.ContentTopic) {
|
||||
data = append(data, indexedMsg)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue