Function: getConversationsAPI()¶
getConversationsAPI(
username
):Promise
<undefined
|Conversations
[]>
Defined in: src/services/AuthService.tsx:267
Fetch all conversations for a user.
Parameters¶
username¶
string
Username whose conversations to fetch
Returns¶
Promise
<undefined
| Conversations
[]>
On success:
Conversations[]
On failure:
undefined
(and logs error)