Merged in feature/IO-2949-messaging-multiple-conversations-found (pull request #1748)
IO-2949 change fetch policy on client to resolve issue.
This commit is contained in:
@@ -36,7 +36,8 @@ export function* openChatByPhone({ payload }) {
|
|||||||
data: { conversations }
|
data: { conversations }
|
||||||
} = yield client.query({
|
} = yield client.query({
|
||||||
query: CONVERSATION_ID_BY_PHONE,
|
query: CONVERSATION_ID_BY_PHONE,
|
||||||
variables: { phone: p.number }
|
variables: { phone: p.number },
|
||||||
|
fetchPolicy: 'no-cache'
|
||||||
});
|
});
|
||||||
|
|
||||||
if (conversations.length === 0) {
|
if (conversations.length === 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user