Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions lib/private/Group/Group.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ public function getDisplayName(): string {

public function setDisplayName(string $displayName): bool {
$displayName = trim($displayName);
$changed = false;
if ($displayName !== '') {
$this->dispatcher->dispatchTyped(new BeforeGroupChangedEvent($this, 'displayName', $displayName, $this->displayName));
foreach ($this->backends as $backend) {
Expand All @@ -93,6 +94,10 @@ public function setDisplayName(string $displayName): bool {
}
}
}
if ($changed) {
$this->dispatcher->dispatchTyped(new GroupChangedEvent($this, 'displayName', $displayName, $oldDisplayName));
return true;
}
return false;
}

Expand Down