fix: indirect access to content topic

This commit is contained in:
Richard Ramos 2021-04-06 19:13:17 -04:00
parent 0a0542324c
commit be168ebe3f
No known key found for this signature in database
GPG Key ID: 80D4B01265FDFE8F
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}
}