This commit is contained in:
j3d1 2023-05-31 21:38:23 +02:00
parent a1fd49c5d1
commit 58ad51fc5c

View file

@ -206,7 +206,7 @@ export default createStore({
return true;
}
const home_servers = await dispatch('getHomeServers')
const home_reply = home_servers.post(getters.signAuth, '/api/friendrequests/', {
const home_reply = await home_servers.post(getters.signAuth, '/api/friendrequests/', {
befriender: state.user,
befriendee: username
})
@ -214,7 +214,7 @@ export default createStore({
return false;
const befriendee_servers = await dispatch('getFriendServers', {username})
const ext_reply = befriendee_servers.post(getters.signAuth, '/api/friendrequests/', {
const ext_reply = await befriendee_servers.post(getters.signAuth, '/api/friendrequests/', {
befriender: state.user,
befriendee: username,
befriender_key: nacl.to_hex(state.keypair.signPk),