@@ -68,11 +68,6 @@ class WSPushService extends AdvancedBase {
68
68
69
69
Object . assign ( response , metadata ) ;
70
70
71
- const io = socketio . getio ( ) ;
72
- for ( const user_id of user_id_list ) {
73
- io . to ( user_id ) . emit ( 'item.added' , response ) ;
74
- }
75
-
76
71
this . svc_event . emit ( 'outer.gui.item.added' , {
77
72
user_id_list,
78
73
response,
@@ -107,11 +102,6 @@ class WSPushService extends AdvancedBase {
107
102
108
103
Object . assign ( response , metadata ) ;
109
104
110
- const io = socketio . getio ( ) ;
111
- for ( const user_id of user_id_list ) {
112
- io . to ( user_id ) . emit ( 'item.updated' , response ) ;
113
- }
114
-
115
105
this . svc_event . emit ( 'outer.gui.item.updated' , {
116
106
user_id_list,
117
107
response,
@@ -147,11 +137,6 @@ class WSPushService extends AdvancedBase {
147
137
response . old_path = old_path ;
148
138
Object . assign ( response , metadata ) ;
149
139
150
- const io = socketio . getio ( ) ;
151
- for ( const user_id of user_id_list ) {
152
- io . to ( user_id ) . emit ( 'item.moved' , response ) ;
153
- }
154
-
155
140
this . svc_event . emit ( 'outer.gui.item.moved' , {
156
141
user_id_list,
157
142
response,
@@ -185,10 +170,6 @@ class WSPushService extends AdvancedBase {
185
170
186
171
Object . assign ( response , metadata ) ;
187
172
188
- const io = socketio . getio ( ) ;
189
- for ( const user_id of user_id_list ) {
190
- io . to ( user_id ) . emit ( 'item.pending' , response ) ;
191
- }
192
173
this . svc_event . emit ( 'outer.gui.item.pending' , {
193
174
user_id_list,
194
175
response,
@@ -248,8 +229,6 @@ class WSPushService extends AdvancedBase {
248
229
}
249
230
250
231
async _on_outer_gui ( key , { user_id_list, response } , meta ) {
251
- if ( ! meta . from_outside ) return ;
252
-
253
232
key = key . slice ( 'outer.gui.' . length ) ;
254
233
255
234
const { socketio } = this . modules ;
0 commit comments