Add support for new-conversation events

This commit is contained in:
Sam
2020-02-29 00:39:22 -05:00
parent 3bcca84908
commit 5f211c7a90
2 changed files with 4 additions and 0 deletions

View File

@ -172,6 +172,9 @@ func (k *Keybase) Run(handlers Handlers, options ...RunOptions) {
if options[0].Wallet { if options[0].Wallet {
runOptions = append(runOptions, "--wallet") runOptions = append(runOptions, "--wallet")
} }
if options[0].Convs {
runOptions = append(runOptions, "--convs")
}
if options[0].Local { if options[0].Local {
runOptions = append(runOptions, "--local") runOptions = append(runOptions, "--local")
} }

View File

@ -16,6 +16,7 @@ type RunOptions struct {
HideExploding bool // Ignore exploding messages HideExploding bool // Ignore exploding messages
Dev bool // Subscribe to dev channel messages Dev bool // Subscribe to dev channel messages
Wallet bool // Subscribe to wallet events Wallet bool // Subscribe to wallet events
Convs bool // Subscribe to new-conversation events
FilterChannel chat1.ChatChannel // Only subscribe to messages from specified channel FilterChannel chat1.ChatChannel // Only subscribe to messages from specified channel
FilterChannels []chat1.ChatChannel // Only subscribe to messages from specified channels FilterChannels []chat1.ChatChannel // Only subscribe to messages from specified channels
} }