fix actions issues
This commit is contained in:
parent
10e0b23a51
commit
b3ce5e3794
2 changed files with 13 additions and 14 deletions
|
@ -201,7 +201,6 @@ func doSubscribe(c *cli.Context, cl *client.Client, conf *client.Config, d *dist
|
|||
|
||||
func printMessageOrRunCommand(c *cli.Context, m *client.Message, d *distributor, command string) {
|
||||
if command == "unifiedpush" && d != nil {
|
||||
// this shouldn't ever be run if d is nil since there won't be a "unifiedpush" subscription
|
||||
if conn := d.st.GetConnectionbyPublic(m.Topic); conn != nil {
|
||||
fmt.Println("NEWMSG")
|
||||
_ = d.dbus.NewConnector(conn.AppID).Message(conn.AppToken, m.Message, "")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue