diff options
author | obscuren <geffobscura@gmail.com> | 2015-02-10 20:20:06 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-02-10 20:20:06 +0800 |
commit | ddccea75e8f4931689fdf6b57ec7159b65c0d3c5 (patch) | |
tree | 6d59f03673d85c83d1e1f14bc45f58c1eccba862 /whisper/whisper.go | |
parent | 58ba290a9f22d954fcc9a8544b992989121db3df (diff) | |
download | dexon-ddccea75e8f4931689fdf6b57ec7159b65c0d3c5.tar dexon-ddccea75e8f4931689fdf6b57ec7159b65c0d3c5.tar.gz dexon-ddccea75e8f4931689fdf6b57ec7159b65c0d3c5.tar.bz2 dexon-ddccea75e8f4931689fdf6b57ec7159b65c0d3c5.tar.lz dexon-ddccea75e8f4931689fdf6b57ec7159b65c0d3c5.tar.xz dexon-ddccea75e8f4931689fdf6b57ec7159b65c0d3c5.tar.zst dexon-ddccea75e8f4931689fdf6b57ec7159b65c0d3c5.zip |
Fixed "to" field
Diffstat (limited to 'whisper/whisper.go')
-rw-r--r-- | whisper/whisper.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/whisper/whisper.go b/whisper/whisper.go index 57c898303..066f2c4ea 100644 --- a/whisper/whisper.go +++ b/whisper/whisper.go @@ -256,6 +256,8 @@ func (self *Whisper) postEvent(envelope *Envelope) { func (self *Whisper) open(envelope *Envelope) (*Message, *ecdsa.PrivateKey) { for _, key := range self.keys { if message, err := envelope.Open(key); err == nil || (err != nil && err == ecies.ErrInvalidPublicKey) { + message.To = &key.PublicKey + return message, key } } |