$choices[$value] = $groups->getBestName();
}
- // Add subscribed users to dropdown menu
- $users = $this->user->getSubscribed();
- while ($users->fetch()) {
- $value = 'profile:'.$users->id;
- $choices[$value] = $users->getBestName();
- }
+ // Add subscribed users to dropdown menu
+ $users = $this->user->getSubscribed();
+ while ($users->fetch()) {
+ $value = 'profile:'.$users->id;
+ if ($this->user->streamNicknames()) {
+ $choices[$value] = $users->getNickname();
+ } else {
+ $choices[$value] = $users->getBestName();
+ }
+ }
if ($this->to instanceof Profile) {
$value = 'profile:'.$this->to->id;