quick dial and creating conversations

This commit is contained in:
talksik
2022-06-11 12:25:41 -05:00
parent 4527d110d7
commit 298a989cd9
6 changed files with 111 additions and 25 deletions
+4
View File
@@ -85,3 +85,7 @@ export async function createConversation(
export async function getConversations(): Promise<NirvanaResponse<Conversation[]>> {
return await NirvanaApi.fetch(`/conversations`, 'GET', true);
}
export async function checkIfOnOnOneExists(otherUserId: string): Promise<NirvanaResponse<string>> {
return await NirvanaApi.fetch(`/conversations/check/${otherUserId}`, 'GET', true);
}