Fixing json/protobuf confusion #219

Merged
erinn merged 1 commits from groupimportfix into master 2019-02-13 02:49:10 +00:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit b607293c2d - Show all commits

View File

@ -112,7 +112,7 @@ func (cp *cwtchPeer) ImportGroup(exportedInvite string) (groupID string, err err
cpp := &protocol.CwtchPeerPacket{}
err = proto.Unmarshal(data, cpp)
if err == nil {
jsobj, err := json.Marshal(cpp.GetGroupChatInvite())
jsobj, err := proto.Marshal(cpp.GetGroupChatInvite())
if err == nil {
cp.eventBus.Publish(event.NewEvent(event.NewGroupInvite, map[event.Field]string{
event.GroupInvite: string(jsobj),