friendly unfriend message

This commit is contained in:
pa
2025-12-16 20:29:48 +09:00
committed by Natsumi
parent 42547b43fb
commit b7c97efeda
4 changed files with 14 additions and 7 deletions

View File

@@ -63,9 +63,10 @@ const friendReq = {
* @param {{ userId: string }} params
* @returns {Promise<{json: any, params: { userId: string }}>}
*/
deleteFriend(params) {
deleteFriend(params, customMsg) {
return request(`auth/user/friends/${params.userId}`, {
method: 'DELETE'
method: 'DELETE',
customMsg
}).then((json) => {
const args = {
json,