From 5f211c7a90850d48ab284c063804e5ce7d795af1 Mon Sep 17 00:00:00 2001 From: Sam Date: Sat, 29 Feb 2020 00:39:22 -0500 Subject: [PATCH] Add support for new-conversation events --- chat.go | 3 +++ types.go | 1 + 2 files changed, 4 insertions(+) diff --git a/chat.go b/chat.go index ac23043..354b98f 100644 --- a/chat.go +++ b/chat.go @@ -172,6 +172,9 @@ func (k *Keybase) Run(handlers Handlers, options ...RunOptions) { if options[0].Wallet { runOptions = append(runOptions, "--wallet") } + if options[0].Convs { + runOptions = append(runOptions, "--convs") + } if options[0].Local { runOptions = append(runOptions, "--local") } diff --git a/types.go b/types.go index 9ad10f8..aad521d 100644 --- a/types.go +++ b/types.go @@ -16,6 +16,7 @@ type RunOptions struct { HideExploding bool // Ignore exploding messages Dev bool // Subscribe to dev channel messages Wallet bool // Subscribe to wallet events + Convs bool // Subscribe to new-conversation events FilterChannel chat1.ChatChannel // Only subscribe to messages from specified channel FilterChannels []chat1.ChatChannel // Only subscribe to messages from specified channels }