Use display name of users to share dialog and notes. See issue #49

This commit is contained in:
Matias De lellis
2022-05-20 19:47:45 -03:00
parent 25e83be493
commit f054842857
7 changed files with 76 additions and 20 deletions

View File

@@ -20,18 +20,24 @@ class NoteShare extends Entity implements JsonSerializable {
protected $sharedGroup;
protected $userId;
protected $displayname;
public function setUserId (string $userId): void {
$this->userId = $userId;
}
public function setDisplayName (string $displayName): void {
$this->displayName = $displayName;
}
public function jsonSerialize() {
return [
'id' => $this->id,
'note_id' => $this->noteId,
'shared_user' => $this->sharedUser,
'shared_group' => $this->sharedGroup,
'user_id' => $this->userId
'user_id' => $this->userId,
'display_name' => $this->displayName
];
}