mirror of
https://github.com/status-im/status-go.git
synced 2025-01-09 14:16:21 +00:00
9de77b21b2
Adds support for datasync, V1Messages and disabling the discovery topic. This is a backward compatible change as long as they are not toggled on (they are not by default).
8 lines
205 B
Go
8 lines
205 B
Go
package protobuf
|
|
|
|
// IsValid checks whether there are any known field in the protobuf
|
|
// message
|
|
func (m *Payload) IsValid() bool {
|
|
return len(m.Messages)+len(m.Acks)+len(m.Offers)+len(m.Requests) != 0
|
|
}
|