Browse Source

Add support for new-conversation events

main
Sam 4 years ago
parent
commit
5f211c7a90
  1. 3
      chat.go
  2. 1
      types.go

3
chat.go

@ -172,6 +172,9 @@ func (k *Keybase) Run(handlers Handlers, options ...RunOptions) { @@ -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")
}

1
types.go

@ -16,6 +16,7 @@ type RunOptions struct { @@ -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
}

Loading…
Cancel
Save