Commit 3adac9d1 authored by Matthias Larisch's avatar Matthias Larisch Committed by chandi

Rename photo back to avatar in API user info

parent 6c2b7e0c
......@@ -19,7 +19,7 @@ export async function getConversationList (limit = -1) {
members: c.member && c.member instanceof Array ? c.member.map((m) => ({
id: parseInt(m.id),
name: m.name,
avatar: m.photo ? `/images/mini_q_${m.photo}` : null
avatar: m.avatar ? `/images/mini_q_${m.photo}` : null
})) : [],
lastMessage: {
bodyRaw: c.last_message,
......
......@@ -32,7 +32,7 @@ class RestNormalization
return [
'id' => (int)$data[$prefix . 'id'],
'name' => $data[$prefix . 'name'],
'photo' => $data[$prefix . 'photo'] ? ('/images/' . $photoVersion . $data[$prefix . 'photo']) : null,
'avatar' => $data[$prefix . 'photo'] ? ('/images/' . $photoVersion . $data[$prefix . 'photo']) : null,
'sleepStatus' => $sleepStatus,
];
}
......
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