mirror of
https://github.com/status-im/status-go.git
synced 2025-01-10 06:36:32 +00:00
baa0767c26
This commit does a few things: 1) Handle membership updates using protobuf and adds the relevant endpoints. 2) Store in memory a map of chats + contacts for faster lookups, which are then flushed to disk on each update 3) Validate incoming messages Sorry for the large pr, but you know, v1 :)
10 lines
221 B
Go
10 lines
221 B
Go
package protocol
|
|
|
|
import (
|
|
v1protocol "github.com/status-im/status-go/protocol/v1"
|
|
)
|
|
|
|
func newProtocolGroupFromChat(chat *Chat) (*v1protocol.Group, error) {
|
|
return v1protocol.NewGroup(chat.ID, chat.MembershipUpdates)
|
|
}
|