mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-28 03:43:28 +10:00
Include sender in messages request
This commit is contained in:
parent
07cadc88fe
commit
f1c6630d2a
1 changed files with 1 additions and 1 deletions
|
|
@ -220,7 +220,7 @@ export const fetchMessages = txId => (dispatch, getState, sdk) => {
|
|||
dispatch(fetchMessagesRequest());
|
||||
|
||||
return sdk.messages
|
||||
.query({ transaction_id: txId })
|
||||
.query({ transaction_id: txId, include: ['sender', 'sender.profileImage'] })
|
||||
.then(response => {
|
||||
const entities = updatedEntities({}, response.data);
|
||||
const messageIds = response.data.data.map(d => d.id);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue