6
1
mirror of https://git.mills.io/saltyim/saltyim.git synced 2024-06-25 00:08:26 +00:00

Fix passing hooks to cli.Read()

This commit is contained in:
James Mills 2022-03-22 00:58:24 +10:00
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))
}
}