WEBVTT

00:00.240 --> 00:00.840
Okay.

00:00.880 --> 00:01.880
Hi, everyone.

00:01.920 --> 00:03.640
The last one will be the remote.

00:04.040 --> 00:04.440
Okay.

00:04.480 --> 00:06.160
This is the cancel.

00:09.600 --> 00:10.960
Friend request.

00:11.360 --> 00:11.840
Okay.

00:12.960 --> 00:15.040
So how we can do that?

00:17.200 --> 00:21.040
Let's call this dot y dot.

00:21.320 --> 00:22.000
Handle.

00:22.520 --> 00:23.200
Cancel.

00:25.680 --> 00:26.440
Request.

00:27.480 --> 00:27.840
Okay.

00:27.840 --> 00:28.040
What?

00:28.040 --> 00:30.600
We need to move over here right now.

00:30.600 --> 00:36.320
You can see inside the gateway we do the sender to receiver.

00:36.520 --> 00:37.760
Now let's think a little bit.

00:38.720 --> 00:43.120
Well first of all it will view the receiver.

00:43.160 --> 00:43.640
Why?

00:44.520 --> 00:45.840
The reason is very simple.

00:46.600 --> 00:51.800
I want to send a friend request to me.

00:52.200 --> 00:52.680
Okay.

00:53.880 --> 00:55.520
It means the error here.

00:55.880 --> 00:58.040
Maybe I don't know what.

01:00.960 --> 01:02.560
It means I sorry.

01:02.600 --> 01:09.170
The genre here will be the center and the performance will be the receiver.

01:10.050 --> 01:10.570
Okay.

01:12.170 --> 01:22.170
This is the action to cancel the the friend request okay.

01:22.330 --> 01:29.330
Because this is the that will be binding this election for cancel from Zoran to Toma.

01:29.370 --> 01:31.130
It means the zone.

01:34.010 --> 01:40.010
Will emit the event to the Tomas for to notify the Tomas.

01:40.570 --> 01:41.090
Okay.

01:41.690 --> 01:43.530
It means right here the two.

01:43.570 --> 01:44.010
Toma.

01:44.050 --> 01:49.250
Tomas right here is about to receiver array.

01:49.650 --> 01:51.370
Right for the status.

01:51.370 --> 01:51.770
Right.

01:55.570 --> 02:01.890
And let me say we need the receiver ID.

02:05.730 --> 02:16.610
And we also need the current user, okay, because the user or the sender ID will be exactly the same.

02:17.650 --> 02:22.890
So I think in this case I will call the sender also sender.

02:28.090 --> 02:32.250
Request dot center dot script.

02:33.130 --> 02:40.770
Because in the front end we want based on two information to filter it okay.

02:40.810 --> 02:42.450
To filter is also.

02:44.530 --> 02:49.250
Insert again why what we need to do I will call the handle.

02:52.170 --> 02:56.690
Reject and handle cancel request fully.

02:56.690 --> 03:01.930
We will receive our array to be a sender a string also.

03:05.330 --> 03:11.140
And actually we need We still.

03:14.300 --> 03:21.420
Require we need one more thing will be a friend request ID right for filter.

03:21.420 --> 03:21.940
Right.

03:22.980 --> 03:24.780
Uh, okay.

03:29.940 --> 03:31.340
Friend request ID?

03:38.900 --> 03:40.420
Please is the most important.

03:47.140 --> 03:47.660
Okay.

03:47.820 --> 03:50.820
Right now I will call this server.

03:53.340 --> 03:55.060
For receiver.

03:56.140 --> 04:04.780
And I will admit the cancel friend request with the sender ID.

04:07.340 --> 04:09.180
And friend request.

04:10.060 --> 04:10.460
Okay.

04:10.500 --> 04:14.270
Based on the friend request id we will filter out us.

04:15.510 --> 04:18.630
Okay, let me go over here.

04:22.870 --> 04:24.270
To test that.

04:32.190 --> 04:33.590
Right now I will remove.

04:41.310 --> 04:48.150
And now I will send the request from John to Thomas.

04:49.590 --> 04:50.070
Okay.

04:50.590 --> 04:57.510
After that, I will sign in with Thomas and click on cancel friend request.

04:58.470 --> 05:00.390
Thomas, come over here and send.

05:02.950 --> 05:08.470
Make sure we are go with the ID of the friend.

05:08.590 --> 05:09.070
Right.

05:10.190 --> 05:11.910
Because this is the most important.

05:18.390 --> 05:18.990
See.

05:21.190 --> 05:22.110
Our user.

05:22.430 --> 05:24.910
Not as user, is it?

05:24.950 --> 05:25.830
Let me say why.

05:28.150 --> 05:30.390
And we'll see.

05:30.430 --> 05:30.910
Bye.

05:36.510 --> 05:37.310
Oh, sorry.

05:39.070 --> 05:41.550
Uh, we need to receive.

05:41.590 --> 05:43.030
Are they in here?

05:43.670 --> 05:45.510
Not not a.

05:48.070 --> 05:50.310
Not a friend request.

05:50.350 --> 05:50.790
Okay.

05:51.550 --> 05:54.270
We need word receiver ID, right.

05:54.950 --> 05:56.390
So what is the receiver?

05:56.390 --> 05:58.110
ID will be here.

05:58.990 --> 05:59.590
Over here.

06:02.510 --> 06:03.470
What are we here?

06:04.390 --> 06:07.990
Let's say a friend request.

06:08.430 --> 06:09.110
Is it?

06:09.670 --> 06:10.510
Let me see why.

06:22.600 --> 06:22.960
Mm.

06:24.320 --> 06:25.280
I think.

06:27.880 --> 06:31.560
Only we need to write the receivers.

06:34.320 --> 06:37.440
Let me go to the controller to see how it can be used.

06:40.880 --> 06:41.160
Okay.

06:41.160 --> 06:42.080
So, friend.

06:42.120 --> 06:45.000
Request receiver.

06:45.000 --> 06:45.600
Array.

06:53.280 --> 06:54.120
Data file.

06:54.160 --> 06:58.080
Here you see with abandon.

06:59.560 --> 07:00.440
Receiver.

07:04.320 --> 07:05.840
See over here.

07:10.120 --> 07:17.960
Oh I know, I know the reason because in order to cancel request, we should login with the Thomas account.

07:18.000 --> 07:23.760
Okay, so sometime I still don't know.

07:25.200 --> 07:25.880
My bad.

07:26.120 --> 07:26.720
I'm not sure.

07:27.640 --> 07:28.880
We always run a cow.

07:32.720 --> 07:40.480
Over here and click on cancel model over here and send right here.

07:40.520 --> 07:41.600
We already got, uh.

07:42.080 --> 07:42.720
Okay.

07:43.320 --> 07:45.360
And if you take a look at.

07:47.480 --> 07:52.840
The here you will say we already got the receiver ID, right.

07:55.200 --> 07:55.920
Receiver.

07:59.800 --> 08:00.520
And I.

08:00.560 --> 08:01.080
Okay.

08:02.000 --> 08:05.600
And sender IDs over here.

08:07.680 --> 08:08.200
Okay.

08:09.040 --> 08:11.360
And if I run the request, they will be here.

08:12.680 --> 08:13.200
Okay.

08:13.440 --> 08:17.600
And by auditing, we can easily filter out us on the front end.

08:18.800 --> 08:21.640
And I hope you understand this video.

08:22.720 --> 08:25.480
So I will see you in the next one.
