Skip to content
Snippets Groups Projects
Commit f7690451 authored by Josh Brooks's avatar Josh Brooks
Browse files

Add more debugs in groupChat

parent 11dcabbc
Branches
No related tags found
2 merge requests!510Release,!388Xx 4214/group message
......@@ -101,6 +101,9 @@ func (m *manager) newMessages(g gs.Group, tag string, msg []byte,
rng := m.getRng().GetStream()
defer rng.Close()
// fixme: maybe make internal message here, pass it into
// newCmixMsg and return, instead of making it continuously?
// Create cMix messages in parallel
for _, member := range g.Members {
// Do not send to the sender
......@@ -166,6 +169,16 @@ func newCmixMsg(g gs.Group, tag string, msg []byte, timestamp time.Time,
// Generate internal message
payload := setInternalPayload(intlMsg, timestamp, senderId, msg)
mar, _ := json.Marshal(NewPublicInternalMessage_DeleteThis(intlMsg))
jww.INFO.Printf("GROUP MSG ID DEBUG (newCmixMsg):"+
"senders group ID: %s\n, "+
"internalMessage marshal: %s\n"+
"internalMessage json: %s\n",
g.ID,
base64.StdEncoding.EncodeToString(intlMsg.Marshal()),
string(mar))
// Encrypt internal message
encryptedPayload := group.Encrypt(key, cmixMsg.Fingerprint, payload)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment