diff options
author | Felix Lange <fjl@twurst.com> | 2015-04-17 20:10:55 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2015-04-17 20:10:55 +0800 |
commit | 4020258801febb9cb3fc221245812fae07d1f2a5 (patch) | |
tree | 731965ea36c39d23afba99cac199bc120d7f31fb /ui | |
parent | d3ed3285e942e312ef2ded2671a09e717e97f33f (diff) | |
parent | 4afc22ba6e79fe951256251444b4a5b8d38b50fb (diff) | |
download | dexon-4020258801febb9cb3fc221245812fae07d1f2a5.tar dexon-4020258801febb9cb3fc221245812fae07d1f2a5.tar.gz dexon-4020258801febb9cb3fc221245812fae07d1f2a5.tar.bz2 dexon-4020258801febb9cb3fc221245812fae07d1f2a5.tar.lz dexon-4020258801febb9cb3fc221245812fae07d1f2a5.tar.xz dexon-4020258801febb9cb3fc221245812fae07d1f2a5.tar.zst dexon-4020258801febb9cb3fc221245812fae07d1f2a5.zip |
Merge pull request #718 from karalabe/whisper-cleanup
Whisper cleanup, part 2
Diffstat (limited to 'ui')
-rw-r--r-- | ui/qt/qwhisper/whisper.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/qt/qwhisper/whisper.go b/ui/qt/qwhisper/whisper.go index 3c2d0a4b9..50b0626f5 100644 --- a/ui/qt/qwhisper/whisper.go +++ b/ui/qt/qwhisper/whisper.go @@ -41,7 +41,7 @@ func (self *Whisper) Post(payload []string, to, from string, topics []string, pr TTL: time.Duration(ttl) * time.Second, To: crypto.ToECDSAPub(common.FromHex(to)), From: key, - Topics: whisper.TopicsFromString(topics...), + Topics: whisper.NewTopicsFromStrings(topics...), }) if err != nil { @@ -106,7 +106,7 @@ func filterFromMap(opts map[string]interface{}) (f whisper.Filter) { if topicList, ok := opts["topics"].(*qml.List); ok { var topics []string topicList.Convert(&topics) - f.Topics = whisper.TopicsFromString(topics...) + f.Topics = whisper.NewTopicsFromStrings(topics...) } return |