Add support for new-conversation events
This commit is contained in:
3
chat.go
3
chat.go
@ -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")
|
||||||
}
|
}
|
||||||
|
|||||||
1
types.go
1
types.go
@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user