WEBVTT

00:00.400 --> 00:02.280
Hi everyone!

00:02.320 --> 00:14.400
After we already have a method to send friend requests, we will allow the user can cancel this send

00:14.440 --> 00:15.720
request, right?

00:15.760 --> 00:23.800
For example, I mark send request to be okay, but.

00:27.000 --> 00:33.760
After some time the eyes realize we already made a mistake.

00:33.920 --> 00:37.800
Okay, I don't want send a request to the base.

00:38.520 --> 00:39.040
Okay.

00:39.720 --> 00:49.120
In this case, we haven't communist the state that we will accept or okay, it's still the pending right

00:49.120 --> 00:49.480
now.

00:49.920 --> 00:51.680
So we will allow the.

00:51.960 --> 00:56.480
I can cancel the send request.

00:56.600 --> 00:57.080
Right.

00:58.440 --> 01:00.520
So let me show you.

01:08.400 --> 01:08.800
Um.

01:09.800 --> 01:12.080
We need to create controllers.

01:14.640 --> 01:15.880
Let me go back over here.

01:17.240 --> 01:24.480
Uh, I will call the cancel request with a receiver ID also.

01:25.480 --> 01:29.760
And cancel friend request.

01:30.520 --> 01:32.960
And we need to create, uh.

01:35.440 --> 01:36.280
The method.

01:36.640 --> 01:37.000
Right.

01:37.040 --> 01:40.720
I think this guy, we can use the remove over here.

01:44.160 --> 01:44.880
Let me.

01:47.200 --> 01:49.040
Let me change to remove.

01:51.240 --> 01:53.760
And go here.

01:54.560 --> 01:56.960
Shadow call user.

02:16.880 --> 02:17.440
Okay.

02:17.480 --> 02:18.280
Right here.

02:18.320 --> 02:19.320
After here.

02:19.320 --> 02:23.280
We need to find love for Ray.

02:23.680 --> 02:27.560
Request over here with the title will be pending.

02:30.640 --> 02:31.080
Right.

02:31.080 --> 02:33.000
We need to find like that.

02:37.680 --> 02:41.240
And we need to find receivers right here.

02:41.240 --> 02:42.960
So let me copy.

02:45.000 --> 02:45.920
Mood over here.

02:47.680 --> 02:48.240
Okay.

02:48.920 --> 02:52.560
After we got a friend.

02:54.680 --> 02:59.320
Request we can remove that.

02:59.360 --> 02:59.880
Okay.

03:05.680 --> 03:12.920
If the friend request do not exit, we will follow.

03:12.920 --> 03:14.520
All new log file.

03:14.920 --> 03:15.720
Reception.

03:18.040 --> 03:19.520
Friend request.

03:21.040 --> 03:22.440
No, not as is.

03:25.680 --> 03:29.840
And if it has it, we can remove that.

03:44.760 --> 03:48.400
We can use this one over here.

03:51.600 --> 03:52.640
Something like that.

03:53.160 --> 03:54.680
Let me see it work or not.

03:54.960 --> 03:55.480
Okay.

03:56.160 --> 03:58.800
Go here, I will.

04:02.920 --> 04:05.000
I will go, I will duplicate.

04:09.400 --> 04:11.280
The methods right here.

04:11.280 --> 04:14.600
I think the method is still the post.

04:15.720 --> 04:16.280
Okay.

04:18.610 --> 04:19.610
Plus one here.

04:22.970 --> 04:24.170
And here.

04:24.170 --> 04:26.290
So request.

04:28.570 --> 04:29.930
Let me set.

04:32.130 --> 04:34.930
The friend request already set.

04:36.850 --> 04:37.610
What about.

04:42.770 --> 04:43.690
Asking.

04:45.890 --> 04:50.090
The result maker Studios in this case.

04:52.730 --> 04:55.170
And so request.

04:56.730 --> 04:59.410
Let me try to console.log over here.

05:17.530 --> 05:22.050
Let me fix the some Stuff.

05:33.410 --> 05:34.210
Right here.

05:34.450 --> 05:36.130
Let's remove the daily.

05:44.570 --> 05:45.690
Let me say it again.

05:47.610 --> 05:48.090
Okay.

05:48.130 --> 05:49.610
Right now it's already work.

05:50.130 --> 05:50.610
Okay.

05:51.890 --> 05:54.090
It's already go to this controller.

05:54.090 --> 06:01.090
Let me remove and, uh, let me check my.

06:17.050 --> 06:17.490
Okay.

06:17.490 --> 06:21.050
It's only removes the friend request.

06:21.930 --> 06:22.490
Okay.

06:22.770 --> 06:27.010
And right here you can say we already returned some status.

06:29.530 --> 06:32.010
With the query editor, but not what we want.

06:32.050 --> 06:37.210
I only want it will be so for the rest with the okay status.

06:37.210 --> 06:37.650
Right?

06:37.650 --> 06:40.010
We can just omit us over here.

06:41.530 --> 06:42.370
Status.

06:42.730 --> 06:43.250
Okay.

06:44.450 --> 06:45.850
And you can put.

06:49.690 --> 06:50.090
Uh.

06:54.410 --> 06:56.970
We not at the status.

06:57.410 --> 06:58.250
We are at the.

06:58.250 --> 06:58.610
We.

07:04.250 --> 07:06.730
Got okay.

07:08.610 --> 07:10.050
And over here also.

07:12.570 --> 07:12.970
Okay.

07:12.970 --> 07:14.570
This will work for now.

07:15.130 --> 07:19.330
Let me remove some use method over here.

07:20.530 --> 07:26.850
And so that will be enough for the cancel request.

07:27.250 --> 07:29.690
And I will see you in the next one.
