method removeAdmin documentation in bbn\Appui\Chat
function(string $id_chat, string $id_user)
{
if ($this->check()
&& bbn\Str::isUid($id_chat)
&& bbn\Str::isUid($id_user)
&& $this->isCreator($id_chat)
&& ($name = $this->user->getName())
&& ($name2 = $this->user->getName($id_user))
) {
return $this->_set_admin(
$id_chat, $id_user, false, [
$this->user->getId() => X::_('You removed') . " $name2 " . X::_('as admin'),
$id_user => "$name " . X::_('removed you as admin'),
"$name " . X::_('removed') . " $name2 " . X::_('as admin')
]
);
}
return null;
}
BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way
This website uses cookies to ensure you get the best experience on our website.
© 2011-2023
BBN Solutions