mirror of
https://git.mills.io/saltyim/saltyim.git
synced 2024-06-28 09:41:02 +00:00
Fix passing hooks to cli.Read()
This commit is contained in:
parent
8e119bedb5
commit
efdd96c5d9
@ -96,7 +96,7 @@ func read(me saltyim.Addr, identity, endpoint string, prehook, posthook string,
|
||||
cancel()
|
||||
}()
|
||||
|
||||
for msg := range cli.Read(ctx, "", "", "") {
|
||||
for msg := range cli.Read(ctx, endpoint, prehook, posthook) {
|
||||
fmt.Println(saltyim.FormatMessage(msg))
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user