Skip to content
Snippets Groups Projects
Commit adf1ce48 authored by Daniel's avatar Daniel
Browse files

WebApp: Add ability to get prev. chat history

parent 7bf3673a
No related merge requests found
......@@ -41,8 +41,8 @@ let converse = function ($http) {
'token': await messaging.getToken()
})
console.log(data)
await $http.post(`${apiUrl}/driver/${this.id}/chat/init`, data)
let response = await $http.post(`${apiUrl}/driver/${this.id}/chat/init`, data)
return response.chats
} catch (e) {
console.log(e)
alert('Unable to initialize chat service.')
......
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