diff --git a/src/Service/MQTTClient.php b/src/Service/MQTTClient.php index 6f7341cf..ccf03839 100644 --- a/src/Service/MQTTClient.php +++ b/src/Service/MQTTClient.php @@ -85,7 +85,7 @@ class MQTTClient $phone_num = $sess['data']->getPhoneNumber(); // use appropriate prefix so we have different channel names for new api - $prefix = $sess->legacy ? self::PREFIX : self::PREFIX_APIv2; + $prefix = $sess['legacy'] ? self::PREFIX : self::PREFIX_APIv2; $channel = $prefix . $phone_num; error_log("SENDING TO CHANNEL: " . $channel);