Commit 76c9971c authored by chimo's avatar chimo Committed by aroque

Show nickname if user has oldschool option enabled

parent e46dcc0c
......@@ -102,12 +102,16 @@ class ToSelector extends Widget
$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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment