Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion core/js/dist/login.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion core/js/dist/login.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion core/js/dist/main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion core/js/dist/main.js.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions core/src/OC/contactsmenu/contact.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<div class="body">
<div class="full-name">{{contact.fullName}}</div>
<div class="last-message">{{contact.lastMessage}}</div>
<div class="email-address">{{contact.emailAddresses}}</div>
</div>
{{#if contact.topAction}}
<a class="top-action" href="{{contact.topAction.hyperlink}}" title="{{contact.topAction.title}}">
Expand Down
1 change: 1 addition & 0 deletions lib/private/Contacts/ContactsMenu/Entry.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ public function jsonSerialize() {
'topAction' => $topAction,
'actions' => $otherActions,
'lastMessage' => '',
'emailAddresses' => $this->getEMailAddresses(),
];
}
}
4 changes: 3 additions & 1 deletion tests/lib/Contacts/ContactsMenu/EntryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,16 +96,18 @@ public function testSetGetProperties() {

public function testJsonSerialize() {
$expectedJson = [
'id' => 123,
'id' => '123',
'fullName' => 'Guadalupe Frisbey',
'topAction' => null,
'actions' => [],
'lastMessage' => '',
'avatar' => null,
'emailAddresses' => ['[email protected]']
];

$this->entry->setId(123);
$this->entry->setFullName('Guadalupe Frisbey');
$this->entry->addEMailAddress('[email protected]');
$json = $this->entry->jsonSerialize();

$this->assertEquals($expectedJson, $json);
Expand Down