-
Notifications
You must be signed in to change notification settings - Fork 0
/
flows.drawio
368 lines (368 loc) · 61 KB
/
flows.drawio
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
<mxfile host="65bd71144e">
<diagram id="cwhXCv2aDeDq9qGCs0LC" name="onConnect">
<mxGraphModel dx="794" dy="1519" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="850" pageHeight="1100" math="0" shadow="0">
<root>
<mxCell id="0"/>
<mxCell id="1" parent="0"/>
<mxCell id="3" value="Pool" style="swimlane;childLayout=stackLayout;resizeParent=1;resizeParentMax=0;startSize=20;html=1;" parent="1" vertex="1">
<mxGeometry x="20" y="-1080" width="400" height="940" as="geometry"/>
</mxCell>
<mxCell id="4" value="client" style="swimlane;startSize=20;html=1;" parent="3" vertex="1">
<mxGeometry y="20" width="200" height="920" as="geometry"/>
</mxCell>
<mxCell id="9" value="" style="edgeStyle=none;html=1;" parent="4" source="7" target="8" edge="1">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="7" value="connect" style="strokeWidth=2;html=1;shape=mxgraph.flowchart.start_2;whiteSpace=wrap;" parent="4" vertex="1">
<mxGeometry x="20" y="30" width="160" height="70" as="geometry"/>
</mxCell>
<mxCell id="8" value="<div style="color: rgb(169, 177, 214); background-color: rgb(26, 27, 38); font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 14px; line-height: 19px;"><div style="color: rgb(204, 204, 204); background-color: rgb(31, 31, 31); line-height: 19px;"><span style="color: #ce9178;">contacts:get</span></div><div style="color: rgb(204, 204, 204); background-color: rgb(31, 31, 31); line-height: 19px;"><div style="line-height: 19px;"><span style="color: #ce9178;">chats:getMy</span></div><div style="line-height: 19px;"><div style="line-height: 19px;"><span style="color: #ce9178;">profile:getMy</span></div></div></div></div>" style="whiteSpace=wrap;html=1;strokeWidth=2;" parent="4" vertex="1">
<mxGeometry y="130" width="140" height="75" as="geometry"/>
</mxCell>
<mxCell id="12" value="populate:<br>1.&nbsp;<span style="color: rgb(79, 193, 255); background-color: rgb(31, 31, 31); font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 14px;">contacts</span>" style="whiteSpace=wrap;html=1;strokeWidth=2;align=left;" parent="4" vertex="1">
<mxGeometry y="310" width="140" height="50" as="geometry"/>
</mxCell>
<mxCell id="16" value="populate:<br>1.&nbsp;<span style="color: rgb(79, 193, 255); background-color: rgb(31, 31, 31); font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 14px;">chats</span><div style=""><span style="background-color: initial;">2.&nbsp;</span><span style="color: rgb(79, 193, 255); background-color: rgb(31, 31, 31); font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 14px;">privateChatsMap</span></div><div style=""><div style="color: rgb(204, 204, 204); background-color: rgb(31, 31, 31); font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 14px; line-height: 19px;"><span style="color: #ce9178;">messages:get</span></div></div>" style="whiteSpace=wrap;html=1;strokeWidth=2;align=left;" parent="4" vertex="1">
<mxGeometry y="540" width="140" height="70" as="geometry"/>
</mxCell>
<mxCell id="20" value="populate:<br>1.&nbsp;<span style="color: rgb(79, 193, 255); background-color: rgb(31, 31, 31); font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 14px;">messageGroups</span>" style="whiteSpace=wrap;html=1;align=left;strokeWidth=2;" parent="4" vertex="1">
<mxGeometry y="690" width="140" height="45" as="geometry"/>
</mxCell>
<mxCell id="ZRpPj2Sg7HmsjpKQmn-6-23" value="populate:<br>1.&nbsp;<span style="color: rgb(79, 193, 255); background-color: rgb(31, 31, 31); font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 14px;">profile</span><br>2.&nbsp;<span style="color: rgb(79, 193, 255); background-color: rgb(31, 31, 31); font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 14px;">blockedList</span>" style="whiteSpace=wrap;html=1;strokeWidth=2;align=left;" vertex="1" parent="4">
<mxGeometry y="430" width="140" height="60" as="geometry"/>
</mxCell>
<mxCell id="vhtwNvCOd_9Z-4-oRwcs-21" value="<div style=""><span style="background-color: initial;">- DONE -</span></div><div style="text-align: left;"><span style="background-color: initial;">populated:</span></div><div style="text-align: left;"><div style="color: rgb(204, 204, 204); background-color: rgb(31, 31, 31); font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 14px; line-height: 19px;"><span style="color: #4fc1ff;">profile</span></div><div style="color: rgb(204, 204, 204); background-color: rgb(31, 31, 31); font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 14px; line-height: 19px;"><div style="line-height: 19px;"><span style="color: #4fc1ff;">blockedList</span></div><div style="line-height: 19px;"><div style="line-height: 19px;"><span style="color: #4fc1ff;">chats</span></div><div style="line-height: 19px;"><div style="line-height: 19px;"><span style="color: #4fc1ff;">privateChatsMap</span></div><div style="line-height: 19px;"><div style="line-height: 19px;"><span style="color: #4fc1ff;">contacts</span></div><div style="line-height: 19px;"><div style="line-height: 19px;"><span style="color: rgb(79, 193, 255);">messageGroups</span><br></div></div></div></div></div></div></div>" style="strokeWidth=2;html=1;shape=mxgraph.flowchart.terminator;whiteSpace=wrap;sketch=0;" vertex="1" parent="4">
<mxGeometry x="10" y="750" width="170" height="170" as="geometry"/>
</mxCell>
<mxCell id="5" value="server" style="swimlane;startSize=20;html=1;" parent="3" vertex="1">
<mxGeometry x="200" y="20" width="200" height="920" as="geometry"/>
</mxCell>
<mxCell id="10" value="<div style="color: rgb(169, 177, 214); background-color: rgb(26, 27, 38); font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 14px; line-height: 19px;"><span style="color: #9ece6a;">contacts:received</span></div>&lt;User[]&gt;" style="whiteSpace=wrap;html=1;strokeWidth=2;" parent="5" vertex="1">
<mxGeometry x="40" y="220" width="160" height="60" as="geometry"/>
</mxCell>
<mxCell id="15" value="<span style="color: rgb(158, 206, 106); background-color: rgb(26, 27, 38); font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 14px;">chats:received</span><br>&lt;group[]&gt;<br><br>join all chats<br>(groups, and private chats with contacts that are not blocked)" style="whiteSpace=wrap;html=1;strokeWidth=2;" parent="5" vertex="1">
<mxGeometry x="40" y="410" width="160" height="110" as="geometry"/>
</mxCell>
<mxCell id="18" value="<div style="color: rgb(169, 177, 214); background-color: rgb(26, 27, 38); font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 14px; line-height: 19px;"><span style="color: #9ece6a;">message:received</span></div>" style="whiteSpace=wrap;html=1;align=center;strokeWidth=2;" parent="5" vertex="1">
<mxGeometry x="30" y="625" width="160" height="45" as="geometry"/>
</mxCell>
<mxCell id="ZRpPj2Sg7HmsjpKQmn-6-22" value="<div style="color: rgb(169, 177, 214); background-color: rgb(26, 27, 38); font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 14px; line-height: 19px;"><div style="color: rgb(204, 204, 204); background-color: rgb(31, 31, 31); line-height: 19px;"><div style="color: rgb(169, 177, 214); background-color: rgb(26, 27, 38); line-height: 19px;"><span style="color: #9ece6a;">profile:received</span></div><div style="color: rgb(169, 177, 214); background-color: rgb(26, 27, 38); line-height: 19px;"><span style="color: rgb(240, 240, 240); font-family: Helvetica; font-size: 12px; background-color: rgb(42, 37, 47);">&lt;User&gt;</span><br></div></div></div>" style="whiteSpace=wrap;html=1;strokeWidth=2;" vertex="1" parent="5">
<mxGeometry x="40" y="310" width="160" height="75" as="geometry"/>
</mxCell>
<mxCell id="13" value="" style="edgeStyle=none;html=1;exitX=0;exitY=1;exitDx=0;exitDy=0;" parent="3" source="10" target="12" edge="1">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="14" style="edgeStyle=none;html=1;entryX=0;entryY=0;entryDx=0;entryDy=0;exitX=1;exitY=1;exitDx=0;exitDy=0;" parent="3" source="8" target="15" edge="1">
<mxGeometry relative="1" as="geometry">
<mxPoint x="189.99999999999955" y="300" as="targetPoint"/>
</mxGeometry>
</mxCell>
<mxCell id="17" value="" style="edgeStyle=none;html=1;entryX=1;entryY=0;entryDx=0;entryDy=0;exitX=0;exitY=1;exitDx=0;exitDy=0;" parent="3" source="15" target="16" edge="1">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="19" value="" style="edgeStyle=none;html=1;exitX=1;exitY=1;exitDx=0;exitDy=0;entryX=0;entryY=0;entryDx=0;entryDy=0;" parent="3" source="16" target="18" edge="1">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="21" style="edgeStyle=none;html=1;entryX=1;entryY=0;entryDx=0;entryDy=0;exitX=0;exitY=1;exitDx=0;exitDy=0;" parent="3" source="18" target="20" edge="1">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="ZRpPj2Sg7HmsjpKQmn-6-24" style="edgeStyle=none;html=1;entryX=1;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="3" source="ZRpPj2Sg7HmsjpKQmn-6-22" target="ZRpPj2Sg7HmsjpKQmn-6-23">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="ZRpPj2Sg7HmsjpKQmn-6-27" style="edgeStyle=none;html=1;entryX=0;entryY=0;entryDx=0;entryDy=0;exitX=1;exitY=1;exitDx=0;exitDy=0;" edge="1" parent="3" source="8" target="10">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="ZRpPj2Sg7HmsjpKQmn-6-28" style="edgeStyle=none;html=1;entryX=0;entryY=0;entryDx=0;entryDy=0;exitX=1;exitY=1;exitDx=0;exitDy=0;" edge="1" parent="3" source="8" target="ZRpPj2Sg7HmsjpKQmn-6-22">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
</root>
</mxGraphModel>
</diagram>
<diagram name="newPrivateChat" id="RblVxcsahSw670hK_T0K">
<mxGraphModel dx="1644" dy="1519" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="850" pageHeight="1100" math="0" shadow="0">
<root>
<mxCell id="6A3dqFPmPON1HAOSdsPj-0"/>
<mxCell id="6A3dqFPmPON1HAOSdsPj-1" parent="6A3dqFPmPON1HAOSdsPj-0"/>
<mxCell id="6A3dqFPmPON1HAOSdsPj-2" value="Pool" style="swimlane;childLayout=stackLayout;resizeParent=1;resizeParentMax=0;startSize=20;html=1;" vertex="1" parent="6A3dqFPmPON1HAOSdsPj-1">
<mxGeometry x="20" y="-1080" width="400" height="710" as="geometry"/>
</mxCell>
<mxCell id="6A3dqFPmPON1HAOSdsPj-3" value="client" style="swimlane;startSize=20;html=1;" vertex="1" parent="6A3dqFPmPON1HAOSdsPj-2">
<mxGeometry y="20" width="200" height="690" as="geometry"/>
</mxCell>
<mxCell id="6A3dqFPmPON1HAOSdsPj-4" value="" style="edgeStyle=none;html=1;" edge="1" parent="6A3dqFPmPON1HAOSdsPj-3" source="6A3dqFPmPON1HAOSdsPj-5" target="6A3dqFPmPON1HAOSdsPj-6">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="6A3dqFPmPON1HAOSdsPj-5" value="user sends message to a NEW private chat<br>*the chat does not exist yet" style="strokeWidth=2;html=1;shape=mxgraph.flowchart.start_2;whiteSpace=wrap;" vertex="1" parent="6A3dqFPmPON1HAOSdsPj-3">
<mxGeometry x="20" y="30" width="160" height="70" as="geometry"/>
</mxCell>
<mxCell id="6A3dqFPmPON1HAOSdsPj-6" value="<div style="color: rgb(169, 177, 214); background-color: rgb(26, 27, 38); font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 14px; line-height: 19px;"><div style="color: rgb(204, 204, 204); background-color: rgb(31, 31, 31); line-height: 19px;"><div style="line-height: 19px;"><span style="color: #ce9178;">chat:private:new:message</span></div><div style="line-height: 19px;"><div style="line-height: 19px;">{ <span style="color: #9cdcfe;">contactId</span>, <span style="color: #9cdcfe;">content</span> }</div></div></div></div>" style="whiteSpace=wrap;html=1;strokeWidth=2;" vertex="1" parent="6A3dqFPmPON1HAOSdsPj-3">
<mxGeometry y="130" width="140" height="75" as="geometry"/>
</mxCell>
<mxCell id="6A3dqFPmPON1HAOSdsPj-7" value="populate states:<br>1. private chats map<br><div><span style="background-color: initial;">2. chats</span></div><div><div style="color: rgb(204, 204, 204); background-color: rgb(31, 31, 31); font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 14px; line-height: 19px;"><span style="color: rgb(206, 145, 120);">messages:get</span></div></div>" style="whiteSpace=wrap;html=1;strokeWidth=2;align=left;" vertex="1" parent="6A3dqFPmPON1HAOSdsPj-3">
<mxGeometry x="10" y="320" width="140" height="80" as="geometry"/>
</mxCell>
<mxCell id="UySUpSbU3aGx-tZ6LaTA-1" style="edgeStyle=none;html=1;entryX=0.5;entryY=0;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="6A3dqFPmPON1HAOSdsPj-3" source="6A3dqFPmPON1HAOSdsPj-9" target="UySUpSbU3aGx-tZ6LaTA-0">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="6A3dqFPmPON1HAOSdsPj-9" value="populate:<br>1.&nbsp;<span style="color: rgb(220, 220, 170); background-color: rgb(31, 31, 31); font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 14px;">MessageGroups</span>" style="whiteSpace=wrap;html=1;align=left;strokeWidth=2;" vertex="1" parent="6A3dqFPmPON1HAOSdsPj-3">
<mxGeometry y="465" width="140" height="45" as="geometry"/>
</mxCell>
<mxCell id="UySUpSbU3aGx-tZ6LaTA-0" value="<div style=""><span style="background-color: initial;">- DONE -</span></div><div style="text-align: left;"><span style="background-color: initial;">populated:</span></div><div style="text-align: left;"><div style="color: rgb(204, 204, 204); background-color: rgb(31, 31, 31); font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 14px; line-height: 19px;"><div style="line-height: 19px;"><div style="line-height: 19px;"><span style="color: #4fc1ff;">chats</span></div><div style="line-height: 19px;"><div style="line-height: 19px;"><span style="color: #4fc1ff;">privateChatsMap</span></div><div style="line-height: 19px;"><div style="line-height: 19px;"><div style="line-height: 19px;"><span style="color: rgb(79, 193, 255);">messageGroups</span><br></div></div></div></div></div></div></div>" style="strokeWidth=2;html=1;shape=mxgraph.flowchart.terminator;whiteSpace=wrap;sketch=0;" vertex="1" parent="6A3dqFPmPON1HAOSdsPj-3">
<mxGeometry x="10" y="550" width="170" height="120" as="geometry"/>
</mxCell>
<mxCell id="6A3dqFPmPON1HAOSdsPj-11" value="server" style="swimlane;startSize=20;html=1;" vertex="1" parent="6A3dqFPmPON1HAOSdsPj-2">
<mxGeometry x="200" y="20" width="200" height="690" as="geometry"/>
</mxCell>
<mxCell id="6A3dqFPmPON1HAOSdsPj-14" value="<div style="color: rgb(169, 177, 214); background-color: rgb(26, 27, 38); font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 14px; line-height: 19px;"><span style="color: #9ece6a;">message:received</span></div>" style="whiteSpace=wrap;html=1;align=center;strokeWidth=2;" vertex="1" parent="6A3dqFPmPON1HAOSdsPj-11">
<mxGeometry x="30" y="470" width="160" height="45" as="geometry"/>
</mxCell>
<mxCell id="6A3dqFPmPON1HAOSdsPj-12" value="<div style="font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 14px; color: rgb(169, 177, 214); background-color: rgb(26, 27, 38); line-height: 19px;"><div style="color: rgb(240, 240, 240); font-family: Helvetica; font-size: 12px; background-color: rgb(42, 37, 47); line-height: 19px;">1. validate (target) contact exist</div><div style="color: rgb(240, 240, 240); font-family: Helvetica; font-size: 12px; background-color: rgb(42, 37, 47); line-height: 19px;">2. validate (target) contact is not in the user's block list</div><div style="color: rgb(240, 240, 240); font-family: Helvetica; font-size: 12px; background-color: rgb(42, 37, 47); line-height: 19px;">3. if doesn't exist create pivate chat with contact</div><div style="color: rgb(240, 240, 240); font-family: Helvetica; font-size: 12px; background-color: rgb(42, 37, 47); line-height: 19px;">4. register message</div><div style="color: rgb(240, 240, 240); font-family: Helvetica; font-size: 12px; background-color: rgb(42, 37, 47); line-height: 19px;">5. join both user's with all of their connected sessions to chat. If (target) contact blocked user (target) contact will not be joined.*</div><div style="color: rgb(240, 240, 240); font-family: Helvetica; font-size: 12px; background-color: rgb(42, 37, 47); line-height: 19px;">3. send new chat data to clients&nbsp;</div></div><div style="font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 14px; color: rgb(169, 177, 214); background-color: rgb(26, 27, 38); line-height: 19px;"><span style="color: rgb(158, 206, 106);">chats:received</span></div><div style="font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 14px; color: rgb(169, 177, 214); background-color: rgb(26, 27, 38); line-height: 19px;"><span style="color: rgb(240, 240, 240); font-family: Helvetica; font-size: 12px; background-color: rgb(42, 37, 47);">Array&lt;chat&gt;[1]</span></div><div style="font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 14px; color: rgb(169, 177, 214); background-color: rgb(26, 27, 38); line-height: 19px;"><span style="color: rgb(240, 240, 240); font-family: Helvetica; font-size: 12px; background-color: rgb(42, 37, 47);">4. redirect user to regular chat page (instead of new chat page)</span></div><div style="font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 14px; color: rgb(169, 177, 214); background-color: rgb(26, 27, 38); line-height: 19px;"><div style="line-height: 19px;"><div style="line-height: 19px;"><span style="color: rgb(158, 206, 106);">chat:redirect</span></div></div><div style="line-height: 19px;"><span style="color: rgb(240, 240, 240); font-family: Helvetica; font-size: 12px; background-color: rgb(42, 37, 47);">&lt;chat._id&gt;</span></div></div><div style="color: rgb(169, 177, 214); background-color: rgb(26, 27, 38); font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 14px; line-height: 19px;"></div>" style="whiteSpace=wrap;html=1;strokeWidth=2;" vertex="1" parent="6A3dqFPmPON1HAOSdsPj-11">
<mxGeometry x="20" y="60" width="180" height="360" as="geometry"/>
</mxCell>
<mxCell id="6A3dqFPmPON1HAOSdsPj-19" value="" style="edgeStyle=none;html=1;exitX=1;exitY=1;exitDx=0;exitDy=0;entryX=0;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="6A3dqFPmPON1HAOSdsPj-2" source="6A3dqFPmPON1HAOSdsPj-7" target="6A3dqFPmPON1HAOSdsPj-14">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="6A3dqFPmPON1HAOSdsPj-20" style="edgeStyle=none;html=1;entryX=1;entryY=0;entryDx=0;entryDy=0;exitX=0;exitY=1;exitDx=0;exitDy=0;" edge="1" parent="6A3dqFPmPON1HAOSdsPj-2" source="6A3dqFPmPON1HAOSdsPj-14" target="6A3dqFPmPON1HAOSdsPj-9">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="6A3dqFPmPON1HAOSdsPj-16" value="" style="edgeStyle=none;html=1;exitX=0;exitY=1;exitDx=0;exitDy=0;" edge="1" parent="6A3dqFPmPON1HAOSdsPj-2" source="6A3dqFPmPON1HAOSdsPj-12" target="6A3dqFPmPON1HAOSdsPj-7">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="6A3dqFPmPON1HAOSdsPj-22" style="edgeStyle=none;html=1;entryX=0;entryY=0;entryDx=0;entryDy=0;exitX=1;exitY=0.5;exitDx=0;exitDy=0;" edge="1" parent="6A3dqFPmPON1HAOSdsPj-2" source="6A3dqFPmPON1HAOSdsPj-6" target="6A3dqFPmPON1HAOSdsPj-12">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="v3cCO4SkIySJDYqAa0PL-1" value="*user <b>cannot </b>create a chat with someone in his blocked list<br><br>*user <b>can </b>create a chat with someone who blocked him. that target WILL get the chat object notification as well but will not be joined to get messages.<br>(the client side will handle the pulling or avoiding of old messages chats:received (see: onConnect flow))" style="shape=note;size=20;whiteSpace=wrap;html=1;sketch=0;" vertex="1" parent="6A3dqFPmPON1HAOSdsPj-1">
<mxGeometry x="470" y="-990" width="180" height="220" as="geometry"/>
</mxCell>
<mxCell id="v3cCO4SkIySJDYqAa0PL-3" style="edgeStyle=none;html=1;dashed=1;dashPattern=1 2;" edge="1" parent="6A3dqFPmPON1HAOSdsPj-1" source="6A3dqFPmPON1HAOSdsPj-12" target="v3cCO4SkIySJDYqAa0PL-1">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
</root>
</mxGraphModel>
</diagram>
<diagram name="newGroupChat" id="b9a4iBgPsBuXqIKOAgBv">
<mxGraphModel dx="794" dy="1519" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="850" pageHeight="1100" math="0" shadow="0">
<root>
<mxCell id="LPyrxAhnVZNptDFKffri-0"/>
<mxCell id="LPyrxAhnVZNptDFKffri-1" parent="LPyrxAhnVZNptDFKffri-0"/>
<mxCell id="LPyrxAhnVZNptDFKffri-2" value="Pool" style="swimlane;childLayout=stackLayout;resizeParent=1;resizeParentMax=0;startSize=20;html=1;" vertex="1" parent="LPyrxAhnVZNptDFKffri-1">
<mxGeometry x="20" y="-1080" width="400" height="710" as="geometry"/>
</mxCell>
<mxCell id="LPyrxAhnVZNptDFKffri-3" value="client" style="swimlane;startSize=20;html=1;" vertex="1" parent="LPyrxAhnVZNptDFKffri-2">
<mxGeometry y="20" width="200" height="690" as="geometry"/>
</mxCell>
<mxCell id="LPyrxAhnVZNptDFKffri-4" value="" style="edgeStyle=none;html=1;" edge="1" parent="LPyrxAhnVZNptDFKffri-3" source="LPyrxAhnVZNptDFKffri-5" target="LPyrxAhnVZNptDFKffri-6">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="LPyrxAhnVZNptDFKffri-5" value="user create a new group chat via form" style="strokeWidth=2;html=1;shape=mxgraph.flowchart.start_2;whiteSpace=wrap;" vertex="1" parent="LPyrxAhnVZNptDFKffri-3">
<mxGeometry x="20" y="30" width="160" height="70" as="geometry"/>
</mxCell>
<mxCell id="LPyrxAhnVZNptDFKffri-6" value="<div style="background-color: rgb(26, 27, 38); font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 14px; line-height: 19px;"><div style="background-color: rgb(31, 31, 31); line-height: 19px;"><div style="color: rgb(204, 204, 204); line-height: 19px;"><div style="line-height: 19px;"><span style="color: #ce9178;">chat:group:create</span></div></div><div style="line-height: 19px;"><div style="line-height: 19px;"><font color="#cccccc">{ </font><font color="#9cdcfe">name, type,</font><font color="#cccccc">&nbsp;</font><span style="color: rgb(156, 220, 254);">members</span><font color="#cccccc"> }</font></div></div></div></div>" style="whiteSpace=wrap;html=1;strokeWidth=2;" vertex="1" parent="LPyrxAhnVZNptDFKffri-3">
<mxGeometry y="150" width="200" height="75" as="geometry"/>
</mxCell>
<mxCell id="4FKS_Yn0GJPSoefYKt0N-0" style="edgeStyle=none;html=1;entryX=0.5;entryY=0;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="LPyrxAhnVZNptDFKffri-3" source="LPyrxAhnVZNptDFKffri-7" target="LPyrxAhnVZNptDFKffri-10">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="LPyrxAhnVZNptDFKffri-7" value="<span style="background-color: initial;">populate chats</span><br><div><div style="color: rgb(204, 204, 204); background-color: rgb(31, 31, 31); font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 14px; line-height: 19px;"><span style="color: rgb(206, 145, 120);">messages:get</span></div></div>" style="whiteSpace=wrap;html=1;strokeWidth=2;align=left;" vertex="1" parent="LPyrxAhnVZNptDFKffri-3">
<mxGeometry x="30" y="360" width="140" height="80" as="geometry"/>
</mxCell>
<mxCell id="LPyrxAhnVZNptDFKffri-10" value="<div style=""><span style="background-color: initial;">- DONE -</span></div><div style="text-align: left;"><span style="background-color: initial;">populated:</span></div><div style="text-align: left;"><div style="color: rgb(204, 204, 204); background-color: rgb(31, 31, 31); font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 14px; line-height: 19px;"><div style="line-height: 19px;"><div style="line-height: 19px;"><span style="color: #4fc1ff;">chats</span></div></div></div></div>" style="strokeWidth=2;html=1;shape=mxgraph.flowchart.terminator;whiteSpace=wrap;sketch=0;" vertex="1" parent="LPyrxAhnVZNptDFKffri-3">
<mxGeometry x="15" y="550" width="170" height="120" as="geometry"/>
</mxCell>
<mxCell id="LPyrxAhnVZNptDFKffri-11" value="server" style="swimlane;startSize=20;html=1;" vertex="1" parent="LPyrxAhnVZNptDFKffri-2">
<mxGeometry x="200" y="20" width="200" height="690" as="geometry"/>
</mxCell>
<mxCell id="LPyrxAhnVZNptDFKffri-12" value="<div style="text-align: left;"><span style="background-color: initial;">&lt;there are no messages yet&gt;</span></div>" style="whiteSpace=wrap;html=1;align=center;strokeWidth=2;" vertex="1" parent="LPyrxAhnVZNptDFKffri-11">
<mxGeometry x="25" y="460" width="160" height="70" as="geometry"/>
</mxCell>
<mxCell id="LPyrxAhnVZNptDFKffri-13" value="<div style="font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 14px; color: rgb(169, 177, 214); background-color: rgb(26, 27, 38); line-height: 19px;"><div style="color: rgb(240, 240, 240); font-family: Helvetica; font-size: 12px; background-color: rgb(42, 37, 47); line-height: 19px;">1. create chat</div><div style="color: rgb(240, 240, 240); font-family: Helvetica; font-size: 12px; background-color: rgb(42, 37, 47); line-height: 19px;">2. join all members to chat room (from all of their sessions)</div></div><div style="font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 14px; color: rgb(169, 177, 214); background-color: rgb(26, 27, 38); line-height: 19px;"><span style="color: rgb(158, 206, 106);">chats:received</span></div><div style="font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 14px; color: rgb(169, 177, 214); background-color: rgb(26, 27, 38); line-height: 19px;"><span style="color: rgb(240, 240, 240); font-family: Helvetica; font-size: 12px; background-color: rgb(42, 37, 47);">&lt;chat[1]&gt;</span></div><div style="font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 14px; color: rgb(169, 177, 214); background-color: rgb(26, 27, 38); line-height: 19px;"><span style="color: rgb(240, 240, 240); font-family: Helvetica; font-size: 12px; background-color: rgb(42, 37, 47);">4. redirect user to the new chat that was created</span></div><div style="font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 14px; color: rgb(169, 177, 214); background-color: rgb(26, 27, 38); line-height: 19px;"><div style="line-height: 19px;"><div style="line-height: 19px;"><span style="color: rgb(158, 206, 106);">chat:redirect</span></div></div><div style="line-height: 19px;"><span style="color: rgb(240, 240, 240); font-family: Helvetica; font-size: 12px; background-color: rgb(42, 37, 47);">&lt;chat._id&gt;</span></div></div><div style="color: rgb(169, 177, 214); background-color: rgb(26, 27, 38); font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 14px; line-height: 19px;"></div>" style="whiteSpace=wrap;html=1;strokeWidth=2;" vertex="1" parent="LPyrxAhnVZNptDFKffri-11">
<mxGeometry x="40" y="120" width="160" height="200" as="geometry"/>
</mxCell>
<mxCell id="LPyrxAhnVZNptDFKffri-14" value="" style="edgeStyle=none;html=1;exitX=1;exitY=1;exitDx=0;exitDy=0;entryX=0;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="LPyrxAhnVZNptDFKffri-2" source="LPyrxAhnVZNptDFKffri-7" target="LPyrxAhnVZNptDFKffri-12">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="LPyrxAhnVZNptDFKffri-16" value="" style="edgeStyle=none;html=1;exitX=0;exitY=1;exitDx=0;exitDy=0;entryX=1;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="LPyrxAhnVZNptDFKffri-2" source="LPyrxAhnVZNptDFKffri-13" target="LPyrxAhnVZNptDFKffri-7">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="LPyrxAhnVZNptDFKffri-17" style="edgeStyle=none;html=1;entryX=0;entryY=0;entryDx=0;entryDy=0;exitX=1;exitY=0.5;exitDx=0;exitDy=0;" edge="1" parent="LPyrxAhnVZNptDFKffri-2" source="LPyrxAhnVZNptDFKffri-6" target="LPyrxAhnVZNptDFKffri-13">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
</root>
</mxGraphModel>
</diagram>
<diagram name="newMessage (existing chat)" id="vTaOh_OU4cQw1B3N2LTC">
<mxGraphModel dx="794" dy="1519" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="850" pageHeight="1100" math="0" shadow="0">
<root>
<mxCell id="SuLRUU7-bCLGMZng1RYl-0"/>
<mxCell id="SuLRUU7-bCLGMZng1RYl-1" parent="SuLRUU7-bCLGMZng1RYl-0"/>
<mxCell id="SuLRUU7-bCLGMZng1RYl-2" value="Pool" style="swimlane;childLayout=stackLayout;resizeParent=1;resizeParentMax=0;startSize=20;html=1;" vertex="1" parent="SuLRUU7-bCLGMZng1RYl-1">
<mxGeometry x="40" y="-1080" width="460" height="830" as="geometry"/>
</mxCell>
<mxCell id="SuLRUU7-bCLGMZng1RYl-3" value="client" style="swimlane;startSize=20;html=1;" vertex="1" parent="SuLRUU7-bCLGMZng1RYl-2">
<mxGeometry y="20" width="200" height="810" as="geometry"/>
</mxCell>
<mxCell id="SuLRUU7-bCLGMZng1RYl-15" style="edgeStyle=none;html=1;entryX=0.5;entryY=0;entryDx=0;entryDy=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryPerimeter=0;" edge="1" parent="SuLRUU7-bCLGMZng1RYl-3" source="SuLRUU7-bCLGMZng1RYl-7" target="SuLRUU7-bCLGMZng1RYl-10">
<mxGeometry relative="1" as="geometry">
<mxPoint x="80" y="560" as="targetPoint"/>
</mxGeometry>
</mxCell>
<mxCell id="SuLRUU7-bCLGMZng1RYl-4" value="" style="edgeStyle=none;html=1;" edge="1" parent="SuLRUU7-bCLGMZng1RYl-3" source="SuLRUU7-bCLGMZng1RYl-5" target="SuLRUU7-bCLGMZng1RYl-6">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="SuLRUU7-bCLGMZng1RYl-5" value="user sends new message to existing chat" style="strokeWidth=2;html=1;shape=mxgraph.flowchart.start_2;whiteSpace=wrap;" vertex="1" parent="SuLRUU7-bCLGMZng1RYl-3">
<mxGeometry x="20" y="30" width="160" height="70" as="geometry"/>
</mxCell>
<mxCell id="SuLRUU7-bCLGMZng1RYl-6" value="<div style="color: rgb(169, 177, 214); background-color: rgb(26, 27, 38); font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 14px; line-height: 19px;"><div style="color: rgb(204, 204, 204); background-color: rgb(31, 31, 31); line-height: 19px;"><div style="line-height: 19px;"><span style="color: #ce9178;">chat:message</span></div><div style="line-height: 19px;"><div style="line-height: 19px;">{ <span style="color: #9cdcfe;">chatId</span>, <span style="color: #9cdcfe;">content</span> }</div></div></div></div>" style="whiteSpace=wrap;html=1;strokeWidth=2;" vertex="1" parent="SuLRUU7-bCLGMZng1RYl-3">
<mxGeometry y="130" width="160" height="75" as="geometry"/>
</mxCell>
<mxCell id="dTxFJnRFWjTYXbFgPhMZ-2" style="edgeStyle=none;html=1;entryX=0.75;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="SuLRUU7-bCLGMZng1RYl-3" target="dTxFJnRFWjTYXbFgPhMZ-1">
<mxGeometry relative="1" as="geometry">
<mxPoint x="80" y="410" as="sourcePoint"/>
<Array as="points">
<mxPoint x="168" y="460"/>
</Array>
</mxGeometry>
</mxCell>
<mxCell id="SuLRUU7-bCLGMZng1RYl-7" value="1. set Toast message<br>2. if one doesn't exist create messageGroup for this chat.<br>3. populate messageGroup" style="whiteSpace=wrap;html=1;strokeWidth=2;align=left;" vertex="1" parent="SuLRUU7-bCLGMZng1RYl-3">
<mxGeometry y="330" width="160" height="80" as="geometry"/>
</mxCell>
<mxCell id="SuLRUU7-bCLGMZng1RYl-10" value="<div style=""><span style="background-color: initial;">- DONE -</span></div><div style="text-align: left;"><span style="background-color: initial;">populated:</span></div><div style="text-align: left;"><div style="color: rgb(204, 204, 204); background-color: rgb(31, 31, 31); font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 14px; line-height: 19px;"><div style="line-height: 19px;"><div style="line-height: 19px;"><div style="line-height: 19px;"><div style="line-height: 19px;"><div style="line-height: 19px;"><span style="color: rgb(79, 193, 255);">messageGroups</span><br></div></div></div></div></div></div></div>" style="strokeWidth=2;html=1;shape=mxgraph.flowchart.terminator;whiteSpace=wrap;sketch=0;" vertex="1" parent="SuLRUU7-bCLGMZng1RYl-3">
<mxGeometry x="15" y="670" width="170" height="120" as="geometry"/>
</mxCell>
<mxCell id="SuLRUU7-bCLGMZng1RYl-12" value="<div style="text-align: left; line-height: 19px;"><span style="background-color: rgb(42, 37, 47);">component</span></div><div style="text-align: left; line-height: 19px;"><span style="color: rgb(220, 220, 170); background-color: rgb(31, 31, 31); font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 14px; text-align: center;">ChatConversation</span>&nbsp;is updated</div>" style="whiteSpace=wrap;html=1;align=center;strokeWidth=2;" vertex="1" parent="SuLRUU7-bCLGMZng1RYl-3">
<mxGeometry y="480" width="150" height="60" as="geometry"/>
</mxCell>
<mxCell id="SuLRUU7-bCLGMZng1RYl-14" value="" style="edgeStyle=none;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="SuLRUU7-bCLGMZng1RYl-3" source="SuLRUU7-bCLGMZng1RYl-7" target="SuLRUU7-bCLGMZng1RYl-12">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="dTxFJnRFWjTYXbFgPhMZ-1" value="<div style="line-height: 19px;">component</div><div style="text-align: center; line-height: 19px;"><font face="Consolas, Courier New, monospace" color="#dcdcaa"><span style="font-size: 14px; background-color: rgb(31, 31, 31);">Toast</span></font>&nbsp;is</div><div style="text-align: center; line-height: 19px;">updated</div>" style="whiteSpace=wrap;html=1;strokeWidth=2;align=left;sketch=0;" vertex="1" parent="SuLRUU7-bCLGMZng1RYl-3">
<mxGeometry x="115" y="570" width="70" height="80" as="geometry"/>
</mxCell>
<mxCell id="SuLRUU7-bCLGMZng1RYl-11" value="server" style="swimlane;startSize=20;html=1;" vertex="1" parent="SuLRUU7-bCLGMZng1RYl-2">
<mxGeometry x="200" y="20" width="260" height="810" as="geometry"/>
</mxCell>
<mxCell id="SuLRUU7-bCLGMZng1RYl-13" value="<div style="font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 14px; color: rgb(169, 177, 214); background-color: rgb(26, 27, 38); line-height: 19px;"><div style="color: rgb(240, 240, 240); font-family: Helvetica; font-size: 12px; background-color: rgb(42, 37, 47); line-height: 19px;">1. validate chat exist</div><div style="color: rgb(240, 240, 240); font-family: Helvetica; font-size: 12px; background-color: rgb(42, 37, 47); line-height: 19px;">2. validate sender is&nbsp; chat member&nbsp;</div><div style="color: rgb(240, 240, 240); font-family: Helvetica; font-size: 12px; background-color: rgb(42, 37, 47); line-height: 19px;">3. log message</div><div style="color: rgb(240, 240, 240); font-family: Helvetica; font-size: 12px; background-color: rgb(42, 37, 47); line-height: 19px;">4. send message to chat</div></div><div style="font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 14px; color: rgb(169, 177, 214); background-color: rgb(26, 27, 38); line-height: 19px;"><div style="line-height: 19px;"><span style="color: #9ece6a;">message:received</span></div></div><div style="font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 14px; color: rgb(169, 177, 214); background-color: rgb(26, 27, 38); line-height: 19px;"><div style="line-height: 19px;"><span style="color: #9abdf5;">{ </span><span style="color: #c0caf5;">chatId</span><span style="color: #89ddff;">,</span><span style="color: #9abdf5;"> </span><span style="color: #c0caf5;">messages</span><span style="color: #9abdf5;"> }</span></div></div><div style="color: rgb(169, 177, 214); background-color: rgb(26, 27, 38); font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 14px; line-height: 19px;"></div>" style="whiteSpace=wrap;html=1;strokeWidth=2;" vertex="1" parent="SuLRUU7-bCLGMZng1RYl-11">
<mxGeometry x="40" y="190" width="210" height="130" as="geometry"/>
</mxCell>
<mxCell id="SuLRUU7-bCLGMZng1RYl-16" value="" style="edgeStyle=none;html=1;exitX=0;exitY=1;exitDx=0;exitDy=0;entryX=1;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="SuLRUU7-bCLGMZng1RYl-2" source="SuLRUU7-bCLGMZng1RYl-13" target="SuLRUU7-bCLGMZng1RYl-7">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="SuLRUU7-bCLGMZng1RYl-17" style="edgeStyle=none;html=1;entryX=0;entryY=0;entryDx=0;entryDy=0;exitX=1;exitY=0.5;exitDx=0;exitDy=0;" edge="1" parent="SuLRUU7-bCLGMZng1RYl-2" source="SuLRUU7-bCLGMZng1RYl-6" target="SuLRUU7-bCLGMZng1RYl-13">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
</root>
</mxGraphModel>
</diagram>
<diagram name="leaveGroupChat" id="xVYx8T3QkgDtA0wrUnIf">
<mxGraphModel dx="794" dy="1519" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="850" pageHeight="1100" math="0" shadow="0">
<root>
<mxCell id="JrgIu-DkOk2aNiVJUk6y-0"/>
<mxCell id="JrgIu-DkOk2aNiVJUk6y-1" parent="JrgIu-DkOk2aNiVJUk6y-0"/>
<mxCell id="JrgIu-DkOk2aNiVJUk6y-2" value="Pool" style="swimlane;childLayout=stackLayout;resizeParent=1;resizeParentMax=0;startSize=20;html=1;" vertex="1" parent="JrgIu-DkOk2aNiVJUk6y-1">
<mxGeometry x="20" y="-1080" width="400" height="580" as="geometry"/>
</mxCell>
<mxCell id="JrgIu-DkOk2aNiVJUk6y-3" value="client" style="swimlane;startSize=20;html=1;" vertex="1" parent="JrgIu-DkOk2aNiVJUk6y-2">
<mxGeometry y="20" width="200" height="560" as="geometry"/>
</mxCell>
<mxCell id="JrgIu-DkOk2aNiVJUk6y-4" value="" style="edgeStyle=none;html=1;" edge="1" parent="JrgIu-DkOk2aNiVJUk6y-3" target="JrgIu-DkOk2aNiVJUk6y-6">
<mxGeometry relative="1" as="geometry">
<mxPoint x="98.17073170731715" y="100" as="sourcePoint"/>
</mxGeometry>
</mxCell>
<mxCell id="JrgIu-DkOk2aNiVJUk6y-5" value="user clicks on "leave group" button in the group chat page" style="strokeWidth=2;html=1;shape=mxgraph.flowchart.start_2;whiteSpace=wrap;" vertex="1" parent="JrgIu-DkOk2aNiVJUk6y-3">
<mxGeometry x="20" y="30" width="160" height="70" as="geometry"/>
</mxCell>
<mxCell id="JrgIu-DkOk2aNiVJUk6y-6" value="<div style="background-color: rgb(26, 27, 38); font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 14px; line-height: 19px;"><div style="background-color: rgb(31, 31, 31); line-height: 19px;"><div style="color: rgb(204, 204, 204); line-height: 19px;"><span style="color: #ce9178;">chat:leave</span></div><div style="line-height: 19px;"><div style="line-height: 19px;"><font color="#9cdcfe">chatId</font></div></div></div></div>" style="whiteSpace=wrap;html=1;strokeWidth=2;" vertex="1" parent="JrgIu-DkOk2aNiVJUk6y-3">
<mxGeometry x="30" y="130" width="140" height="75" as="geometry"/>
</mxCell>
<mxCell id="JrgIu-DkOk2aNiVJUk6y-10" value="<div style=""><span style="background-color: initial;">- DONE -</span></div>" style="strokeWidth=2;html=1;shape=mxgraph.flowchart.terminator;whiteSpace=wrap;sketch=0;" vertex="1" parent="JrgIu-DkOk2aNiVJUk6y-3">
<mxGeometry x="15" y="430" width="170" height="120" as="geometry"/>
</mxCell>
<mxCell id="JrgIu-DkOk2aNiVJUk6y-11" value="server" style="swimlane;startSize=20;html=1;" vertex="1" parent="JrgIu-DkOk2aNiVJUk6y-2">
<mxGeometry x="200" y="20" width="200" height="560" as="geometry"/>
</mxCell>
<mxCell id="HfP6-W1xDIrDuGZBnH6g-3" value="" style="edgeStyle=none;html=1;dashed=1;dashPattern=1 2;" edge="1" parent="JrgIu-DkOk2aNiVJUk6y-11" source="JrgIu-DkOk2aNiVJUk6y-13" target="HfP6-W1xDIrDuGZBnH6g-2">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="JrgIu-DkOk2aNiVJUk6y-13" value="<div style="font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 14px; color: rgb(169, 177, 214); background-color: rgb(26, 27, 38); line-height: 19px;"><div style="color: rgb(240, 240, 240); font-family: Helvetica; font-size: 12px; background-color: rgb(42, 37, 47); line-height: 19px;">1. update chat members (remove this user)</div><div style="color: rgb(240, 240, 240); font-family: Helvetica; font-size: 12px; background-color: rgb(42, 37, 47); line-height: 19px;">2. call editGroupChat()</div></div><div style="color: rgb(169, 177, 214); background-color: rgb(26, 27, 38); font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 14px; line-height: 19px;"></div>" style="whiteSpace=wrap;html=1;strokeWidth=2;" vertex="1" parent="JrgIu-DkOk2aNiVJUk6y-11">
<mxGeometry x="25" y="230" width="160" height="70" as="geometry"/>
</mxCell>
<mxCell id="HfP6-W1xDIrDuGZBnH6g-2" value="see editGroupChat flow" style="whiteSpace=wrap;html=1;strokeWidth=2;" vertex="1" parent="JrgIu-DkOk2aNiVJUk6y-11">
<mxGeometry x="45" y="330" width="120" height="60" as="geometry"/>
</mxCell>
<mxCell id="JrgIu-DkOk2aNiVJUk6y-17" style="edgeStyle=none;html=1;entryX=0;entryY=0;entryDx=0;entryDy=0;exitX=1;exitY=0.5;exitDx=0;exitDy=0;" edge="1" parent="JrgIu-DkOk2aNiVJUk6y-2" source="JrgIu-DkOk2aNiVJUk6y-6" target="JrgIu-DkOk2aNiVJUk6y-13">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="HfP6-W1xDIrDuGZBnH6g-4" style="edgeStyle=none;html=1;entryX=0.5;entryY=0;entryDx=0;entryDy=0;entryPerimeter=0;dashed=1;dashPattern=1 2;" edge="1" parent="JrgIu-DkOk2aNiVJUk6y-2" source="HfP6-W1xDIrDuGZBnH6g-2" target="JrgIu-DkOk2aNiVJUk6y-10">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
</root>
</mxGraphModel>
</diagram>
<diagram name="editGroupChat" id="blD5LkCuKN3fErBvbDzX">
<mxGraphModel dx="794" dy="1519" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="850" pageHeight="1100" math="0" shadow="0">
<root>
<mxCell id="A14rhuOSeq66PP6WQR4l-0"/>
<mxCell id="A14rhuOSeq66PP6WQR4l-1" parent="A14rhuOSeq66PP6WQR4l-0"/>
<mxCell id="A14rhuOSeq66PP6WQR4l-2" value="Pool" style="swimlane;childLayout=stackLayout;resizeParent=1;resizeParentMax=0;startSize=20;html=1;" vertex="1" parent="A14rhuOSeq66PP6WQR4l-1">
<mxGeometry x="20" y="-1080" width="400" height="1070" as="geometry"/>
</mxCell>
<mxCell id="A14rhuOSeq66PP6WQR4l-3" value="client" style="swimlane;startSize=20;html=1;" vertex="1" parent="A14rhuOSeq66PP6WQR4l-2">
<mxGeometry y="20" width="200" height="1050" as="geometry"/>
</mxCell>
<mxCell id="A14rhuOSeq66PP6WQR4l-4" value="" style="edgeStyle=none;html=1;" edge="1" parent="A14rhuOSeq66PP6WQR4l-3" target="A14rhuOSeq66PP6WQR4l-6">
<mxGeometry relative="1" as="geometry">
<mxPoint x="98.17073170731715" y="100" as="sourcePoint"/>
</mxGeometry>
</mxCell>
<mxCell id="A14rhuOSeq66PP6WQR4l-5" value="user updates group chat in NewEditGroup page" style="strokeWidth=2;html=1;shape=mxgraph.flowchart.start_2;whiteSpace=wrap;" vertex="1" parent="A14rhuOSeq66PP6WQR4l-3">
<mxGeometry x="20" y="30" width="160" height="70" as="geometry"/>
</mxCell>
<mxCell id="A14rhuOSeq66PP6WQR4l-6" value="<div style="background-color: rgb(26, 27, 38); font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 14px; line-height: 19px;"><div style="background-color: rgb(31, 31, 31); line-height: 19px;"><div style="color: rgb(204, 204, 204); line-height: 19px;"><div style="line-height: 19px;"><span style="color: #ce9178;">chat:group:edit</span></div></div><div style="line-height: 19px;"><div style="line-height: 19px;"><font color="#cccccc">{&nbsp;</font><span style="color: rgb(156, 220, 254);">_id,&nbsp;</span><font color="#9cdcfe">name, type,</font><font color="#cccccc">&nbsp;</font><span style="color: rgb(156, 220, 254);">members</span><font color="#cccccc">&nbsp;}</font><br></div></div></div></div>" style="whiteSpace=wrap;html=1;strokeWidth=2;" vertex="1" parent="A14rhuOSeq66PP6WQR4l-3">
<mxGeometry x="30" y="130" width="140" height="75" as="geometry"/>
</mxCell>
<mxCell id="q1tpmx-mhjulP2Pv25v3-8" value="update (remove keys):<br>1.&nbsp;<span style="color: rgb(79, 193, 255); background-color: rgb(31, 31, 31); font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 14px;">chats</span><div style=""><span style="background-color: initial;">2.&nbsp;</span><span style="color: rgb(79, 193, 255); background-color: rgb(31, 31, 31); font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 14px;">privateChatsMap</span></div><div style="">if inside a chat that was removed - navigate to /chats<span style="color: rgb(79, 193, 255); background-color: rgb(31, 31, 31); font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 14px;"><br></span></div>" style="whiteSpace=wrap;html=1;strokeWidth=2;align=left;" vertex="1" parent="A14rhuOSeq66PP6WQR4l-3">
<mxGeometry x="20" y="780" width="140" height="100" as="geometry"/>
</mxCell>
<mxCell id="A14rhuOSeq66PP6WQR4l-7" value="<div style=""><span style="background-color: initial;">- DONE -</span></div>" style="strokeWidth=2;html=1;shape=mxgraph.flowchart.terminator;whiteSpace=wrap;sketch=0;" vertex="1" parent="A14rhuOSeq66PP6WQR4l-3">
<mxGeometry x="15" y="910" width="170" height="120" as="geometry"/>
</mxCell>
<mxCell id="A14rhuOSeq66PP6WQR4l-8" value="server" style="swimlane;startSize=20;html=1;" vertex="1" parent="A14rhuOSeq66PP6WQR4l-2">
<mxGeometry x="200" y="20" width="200" height="1050" as="geometry"/>
</mxCell>
<mxCell id="A14rhuOSeq66PP6WQR4l-10" value="<div style="font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 14px; color: rgb(169, 177, 214); background-color: rgb(26, 27, 38); line-height: 19px;"><div style="color: rgb(240, 240, 240); font-family: Helvetica; font-size: 12px; background-color: rgb(42, 37, 47); line-height: 19px;">1. extract removed members (if any)</div><div style="color: rgb(240, 240, 240); font-family: Helvetica; font-size: 12px; background-color: rgb(42, 37, 47); line-height: 19px;">2. update chat in the DB</div><div style="color: rgb(240, 240, 240); font-family: Helvetica; font-size: 12px; background-color: rgb(42, 37, 47); line-height: 19px;">3. join all updated members to chat room</div><div style="color: rgb(240, 240, 240); font-family: Helvetica; font-size: 12px; background-color: rgb(42, 37, 47); line-height: 19px;">4. send a notification of the updated chat to updated members</div><div style="color: rgb(240, 240, 240); font-family: Helvetica; font-size: 12px; background-color: rgb(42, 37, 47); line-height: 19px;"><div style="color: rgb(169, 177, 214); background-color: rgb(26, 27, 38); font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 14px; line-height: 19px;"><span style="color: #9ece6a;">chats:received</span></div></div><div style="color: rgb(240, 240, 240); font-family: Helvetica; font-size: 12px; background-color: rgb(42, 37, 47); line-height: 19px;">5. remove from the room all removed members from chat group</div><div style="color: rgb(240, 240, 240); font-family: Helvetica; font-size: 12px; background-color: rgb(42, 37, 47); line-height: 19px;">6. send a notification to all removed members to remove group from their lists</div><div style="color: rgb(240, 240, 240); font-family: Helvetica; font-size: 12px; background-color: rgb(42, 37, 47); line-height: 19px;"><div style="color: rgb(169, 177, 214); background-color: rgb(26, 27, 38); font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 14px; line-height: 19px;"><span style="color: #9ece6a;">chats:removed</span></div></div></div><div style="color: rgb(169, 177, 214); background-color: rgb(26, 27, 38); font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 14px; line-height: 19px;"></div>" style="whiteSpace=wrap;html=1;strokeWidth=2;" vertex="1" parent="A14rhuOSeq66PP6WQR4l-8">
<mxGeometry x="20" y="180" width="160" height="320" as="geometry"/>
</mxCell>
<mxCell id="A14rhuOSeq66PP6WQR4l-12" style="edgeStyle=none;html=1;entryX=0;entryY=0;entryDx=0;entryDy=0;exitX=1;exitY=0.5;exitDx=0;exitDy=0;" edge="1" parent="A14rhuOSeq66PP6WQR4l-2" source="A14rhuOSeq66PP6WQR4l-6" target="A14rhuOSeq66PP6WQR4l-10">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="q1tpmx-mhjulP2Pv25v3-7" value="" style="edgeStyle=none;html=1;entryX=0.557;entryY=0.029;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="A14rhuOSeq66PP6WQR4l-2" source="A14rhuOSeq66PP6WQR4l-10" target="q1tpmx-mhjulP2Pv25v3-8">
<mxGeometry relative="1" as="geometry">
<mxPoint x="120" y="790" as="targetPoint"/>
<Array as="points">
<mxPoint x="180" y="730"/>
</Array>
</mxGeometry>
</mxCell>
<mxCell id="q1tpmx-mhjulP2Pv25v3-4" style="edgeStyle=none;html=1;" edge="1" parent="A14rhuOSeq66PP6WQR4l-1" source="q1tpmx-mhjulP2Pv25v3-0" target="q1tpmx-mhjulP2Pv25v3-2">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="q1tpmx-mhjulP2Pv25v3-0" value="populate:<br>1.&nbsp;<span style="color: rgb(79, 193, 255); background-color: rgb(31, 31, 31); font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 14px;">chats</span><div style=""><span style="background-color: initial;">2.&nbsp;</span><span style="color: rgb(79, 193, 255); background-color: rgb(31, 31, 31); font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 14px;">privateChatsMap</span></div><div style=""><div style="color: rgb(204, 204, 204); background-color: rgb(31, 31, 31); font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 14px; line-height: 19px;"><span style="color: #ce9178;">messages:get</span></div></div>" style="whiteSpace=wrap;html=1;strokeWidth=2;align=left;" vertex="1" parent="A14rhuOSeq66PP6WQR4l-1">
<mxGeometry x="20" y="-520" width="140" height="70" as="geometry"/>
</mxCell>
<mxCell id="q1tpmx-mhjulP2Pv25v3-1" value="populate:<br>1.&nbsp;<span style="color: rgb(79, 193, 255); background-color: rgb(31, 31, 31); font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 14px;">messageGroups</span>" style="whiteSpace=wrap;html=1;align=left;strokeWidth=2;" vertex="1" parent="A14rhuOSeq66PP6WQR4l-1">
<mxGeometry x="20" y="-370" width="140" height="45" as="geometry"/>
</mxCell>
<mxCell id="q1tpmx-mhjulP2Pv25v3-5" style="edgeStyle=none;html=1;" edge="1" parent="A14rhuOSeq66PP6WQR4l-1" source="q1tpmx-mhjulP2Pv25v3-2" target="q1tpmx-mhjulP2Pv25v3-1">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="q1tpmx-mhjulP2Pv25v3-2" value="<div style="color: rgb(169, 177, 214); background-color: rgb(26, 27, 38); font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 14px; line-height: 19px;"><span style="color: #9ece6a;">message:received</span></div>" style="whiteSpace=wrap;html=1;align=center;strokeWidth=2;" vertex="1" parent="A14rhuOSeq66PP6WQR4l-1">
<mxGeometry x="250" y="-435" width="160" height="45" as="geometry"/>
</mxCell>
<mxCell id="q1tpmx-mhjulP2Pv25v3-3" style="edgeStyle=none;html=1;exitX=0;exitY=0.5;exitDx=0;exitDy=0;" edge="1" parent="A14rhuOSeq66PP6WQR4l-1" source="A14rhuOSeq66PP6WQR4l-10" target="q1tpmx-mhjulP2Pv25v3-0">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>