6
1
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:
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() cancel()
}() }()
for msg := range cli.Read(ctx, "", "", "") { for msg := range cli.Read(ctx, endpoint, prehook, posthook) {
fmt.Println(saltyim.FormatMessage(msg)) fmt.Println(saltyim.FormatMessage(msg))
} }
} }