Fixing json/protobuf confusion

このコミットが含まれているのは:
Sarah Jamie Lewis 2019-02-12 18:46:23 -08:00
コミット b607293c2d
1個のファイルの変更1行の追加1行の削除

ファイルの表示

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