solid-ui 2.4.28-89c74e3e → 2.4.28-a414b470
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/solid-ui.js +3 -3
- package/dist/solid-ui.js.map +1 -1
- package/dist/solid-ui.min.js +1 -1
- package/dist/solid-ui.min.js.map +1 -1
- package/lib/chat/message.js +1 -1
- package/lib/chat/message.js.map +1 -1
- package/lib/chat/thread.js +226 -159
- package/lib/chat/thread.js.map +1 -1
- package/lib/versionInfo.js +2 -2
- package/lib/versionInfo.js.map +1 -1
- package/package.json +1 -1
package/lib/chat/thread.js
CHANGED
|
@@ -101,45 +101,60 @@ function thread(dom, kb, subject, messageStore, options) {
|
|
|
101
101
|
form.AJAR_date = '9999-01-01T00:00:00Z'; // ISO format for field sort
|
|
102
102
|
|
|
103
103
|
var sendMessage = /*#__PURE__*/function () {
|
|
104
|
-
var _ref = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function
|
|
104
|
+
var _ref = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2() {
|
|
105
105
|
var _yield$appendMsg, message, dateStamp, sts, sendComplete;
|
|
106
|
-
return _regenerator["default"].wrap(function
|
|
107
|
-
while (1) switch (
|
|
106
|
+
return _regenerator["default"].wrap(function _callee2$(_context2) {
|
|
107
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
108
108
|
case 0:
|
|
109
109
|
// titlefield.setAttribute('class','pendingedit')
|
|
110
110
|
// titlefield.disabled = true
|
|
111
111
|
field.setAttribute('class', 'pendingedit');
|
|
112
112
|
field.disabled = true;
|
|
113
|
-
|
|
113
|
+
_context2.next = 4;
|
|
114
114
|
return appendMsg(field.value);
|
|
115
115
|
case 4:
|
|
116
|
-
_yield$appendMsg =
|
|
116
|
+
_yield$appendMsg = _context2.sent;
|
|
117
117
|
message = _yield$appendMsg.message;
|
|
118
118
|
dateStamp = _yield$appendMsg.dateStamp;
|
|
119
119
|
sts = _yield$appendMsg.sts;
|
|
120
|
-
sendComplete = function
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
120
|
+
sendComplete = /*#__PURE__*/function () {
|
|
121
|
+
var _ref2 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(uri, success, body) {
|
|
122
|
+
var bindings;
|
|
123
|
+
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
124
|
+
while (1) switch (_context.prev = _context.next) {
|
|
125
|
+
case 0:
|
|
126
|
+
if (!success) {
|
|
127
|
+
form.appendChild(UI.widgets.errorMessageBlock(dom, 'Error writing message: ' + body));
|
|
128
|
+
} else {
|
|
129
|
+
bindings = {
|
|
130
|
+
'?msg': message,
|
|
131
|
+
'?content': _solidLogic.store.literal(field.value),
|
|
132
|
+
'?date': dateStamp,
|
|
133
|
+
'?creator': me
|
|
134
|
+
};
|
|
135
|
+
renderMessage(bindings, false); // not green
|
|
131
136
|
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
137
|
+
field.value = ''; // clear from out for reuse
|
|
138
|
+
field.setAttribute('class', '');
|
|
139
|
+
field.disabled = false;
|
|
140
|
+
}
|
|
141
|
+
case 1:
|
|
142
|
+
case "end":
|
|
143
|
+
return _context.stop();
|
|
144
|
+
}
|
|
145
|
+
}, _callee);
|
|
146
|
+
}));
|
|
147
|
+
return function sendComplete(_x, _x2, _x3) {
|
|
148
|
+
return _ref2.apply(this, arguments);
|
|
149
|
+
};
|
|
150
|
+
}();
|
|
151
|
+
_context2.next = 11;
|
|
152
|
+
return updater.updateMany([], sts, sendComplete);
|
|
153
|
+
case 11:
|
|
139
154
|
case "end":
|
|
140
|
-
return
|
|
155
|
+
return _context2.stop();
|
|
141
156
|
}
|
|
142
|
-
},
|
|
157
|
+
}, _callee2);
|
|
143
158
|
}));
|
|
144
159
|
return function sendMessage() {
|
|
145
160
|
return _ref.apply(this, arguments);
|
|
@@ -156,28 +171,28 @@ function thread(dom, kb, subject, messageStore, options) {
|
|
|
156
171
|
// field.cols = 40
|
|
157
172
|
field.setAttribute('style', messageBodyStyle + 'background-color: #eef;');
|
|
158
173
|
field.addEventListener('keyup', /*#__PURE__*/function () {
|
|
159
|
-
var
|
|
160
|
-
return _regenerator["default"].wrap(function
|
|
161
|
-
while (1) switch (
|
|
174
|
+
var _ref3 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee3(e) {
|
|
175
|
+
return _regenerator["default"].wrap(function _callee3$(_context3) {
|
|
176
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
162
177
|
case 0:
|
|
163
178
|
if (!(e.keyCode === 13)) {
|
|
164
|
-
|
|
179
|
+
_context3.next = 4;
|
|
165
180
|
break;
|
|
166
181
|
}
|
|
167
182
|
if (e.altKey) {
|
|
168
|
-
|
|
183
|
+
_context3.next = 4;
|
|
169
184
|
break;
|
|
170
185
|
}
|
|
171
|
-
|
|
186
|
+
_context3.next = 4;
|
|
172
187
|
return sendMessage();
|
|
173
188
|
case 4:
|
|
174
189
|
case "end":
|
|
175
|
-
return
|
|
190
|
+
return _context3.stop();
|
|
176
191
|
}
|
|
177
|
-
},
|
|
192
|
+
}, _callee3);
|
|
178
193
|
}));
|
|
179
|
-
return function (
|
|
180
|
-
return
|
|
194
|
+
return function (_x4) {
|
|
195
|
+
return _ref3.apply(this, arguments);
|
|
181
196
|
};
|
|
182
197
|
}(), false);
|
|
183
198
|
rhs.innerHTML = '';
|
|
@@ -197,13 +212,13 @@ function thread(dom, kb, subject, messageStore, options) {
|
|
|
197
212
|
return form;
|
|
198
213
|
};
|
|
199
214
|
var appendMsg = /*#__PURE__*/function () {
|
|
200
|
-
var
|
|
215
|
+
var _ref4 = (0, _asyncToGenerator2["default"])(function (fieldValue) {
|
|
201
216
|
var oldMsg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
202
217
|
var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
|
|
203
|
-
return /*#__PURE__*/_regenerator["default"].mark(function
|
|
218
|
+
return /*#__PURE__*/_regenerator["default"].mark(function _callee4() {
|
|
204
219
|
var sts, now, timestamp, dateStamp, message, msgBody;
|
|
205
|
-
return _regenerator["default"].wrap(function
|
|
206
|
-
while (1) switch (
|
|
220
|
+
return _regenerator["default"].wrap(function _callee4$(_context4) {
|
|
221
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
207
222
|
case 0:
|
|
208
223
|
// alain
|
|
209
224
|
sts = [];
|
|
@@ -212,21 +227,21 @@ function thread(dom, kb, subject, messageStore, options) {
|
|
|
212
227
|
dateStamp = $rdf.term(now); // http://www.w3schools.com/jsref/jsref_obj_date.asp
|
|
213
228
|
message = _solidLogic.store.sym(messageStore.uri + '#' + 'Msg' + timestamp);
|
|
214
229
|
if (!(options === 'edit' || options === 'delete')) {
|
|
215
|
-
|
|
230
|
+
_context4.next = 18;
|
|
216
231
|
break;
|
|
217
232
|
}
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
233
|
+
_context4.t0 = sts;
|
|
234
|
+
_context4.t1 = $rdf.Statement;
|
|
235
|
+
_context4.next = 10;
|
|
221
236
|
return mostRecentVersion(oldMsg);
|
|
222
237
|
case 10:
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
238
|
+
_context4.t2 = _context4.sent;
|
|
239
|
+
_context4.t3 = DCT('isReplacedBy');
|
|
240
|
+
_context4.t4 = message;
|
|
241
|
+
_context4.t5 = messageStore;
|
|
242
|
+
_context4.t6 = new _context4.t1(_context4.t2, _context4.t3, _context4.t4, _context4.t5);
|
|
243
|
+
_context4.t0.push.call(_context4.t0, _context4.t6);
|
|
244
|
+
_context4.next = 19;
|
|
230
245
|
break;
|
|
231
246
|
case 18:
|
|
232
247
|
sts.push(new $rdf.Statement(subject, ns.wf('message'), message, messageStore));
|
|
@@ -238,20 +253,20 @@ function thread(dom, kb, subject, messageStore, options) {
|
|
|
238
253
|
if (me) {
|
|
239
254
|
sts.push(new $rdf.Statement(message, ns.foaf('maker'), me, messageStore));
|
|
240
255
|
}
|
|
241
|
-
return
|
|
256
|
+
return _context4.abrupt("return", {
|
|
242
257
|
message: message,
|
|
243
258
|
dateStamp: dateStamp,
|
|
244
259
|
sts: sts
|
|
245
260
|
});
|
|
246
261
|
case 24:
|
|
247
262
|
case "end":
|
|
248
|
-
return
|
|
263
|
+
return _context4.stop();
|
|
249
264
|
}
|
|
250
|
-
},
|
|
265
|
+
}, _callee4);
|
|
251
266
|
})();
|
|
252
267
|
});
|
|
253
|
-
return function appendMsg(
|
|
254
|
-
return
|
|
268
|
+
return function appendMsg(_x5) {
|
|
269
|
+
return _ref4.apply(this, arguments);
|
|
255
270
|
};
|
|
256
271
|
}();
|
|
257
272
|
function nick(person) {
|
|
@@ -309,127 +324,179 @@ function thread(dom, kb, subject, messageStore, options) {
|
|
|
309
324
|
return message;
|
|
310
325
|
};
|
|
311
326
|
var _deleteMessage = /*#__PURE__*/function () {
|
|
312
|
-
var
|
|
327
|
+
var _ref5 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee5(message) {
|
|
313
328
|
var deletions;
|
|
314
|
-
return _regenerator["default"].wrap(function
|
|
315
|
-
while (1) switch (
|
|
329
|
+
return _regenerator["default"].wrap(function _callee5$(_context5) {
|
|
330
|
+
while (1) switch (_context5.prev = _context5.next) {
|
|
316
331
|
case 0:
|
|
317
|
-
|
|
332
|
+
_context5.next = 2;
|
|
318
333
|
return _solidLogic.store.connectedStatements(message, messageStore);
|
|
319
334
|
case 2:
|
|
320
|
-
deletions =
|
|
321
|
-
|
|
335
|
+
deletions = _context5.sent;
|
|
336
|
+
_context5.next = 5;
|
|
337
|
+
return updater.updateMany(deletions, [], function (uri, ok, body) {
|
|
322
338
|
if (!ok) {
|
|
323
339
|
announce.error('Cant delete messages:' + body);
|
|
324
340
|
} else {
|
|
325
341
|
syncMessages(subject, messageTable);
|
|
326
342
|
}
|
|
327
343
|
});
|
|
328
|
-
case
|
|
344
|
+
case 5:
|
|
329
345
|
case "end":
|
|
330
|
-
return
|
|
346
|
+
return _context5.stop();
|
|
331
347
|
}
|
|
332
|
-
},
|
|
348
|
+
}, _callee5);
|
|
333
349
|
}));
|
|
334
|
-
return function _deleteMessage(
|
|
335
|
-
return
|
|
350
|
+
return function _deleteMessage(_x6) {
|
|
351
|
+
return _ref5.apply(this, arguments);
|
|
336
352
|
};
|
|
337
353
|
}();
|
|
338
|
-
var addMessage = function
|
|
339
|
-
var
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
354
|
+
var addMessage = /*#__PURE__*/function () {
|
|
355
|
+
var _ref6 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee6(message) {
|
|
356
|
+
var bindings;
|
|
357
|
+
return _regenerator["default"].wrap(function _callee6$(_context6) {
|
|
358
|
+
while (1) switch (_context6.prev = _context6.next) {
|
|
359
|
+
case 0:
|
|
360
|
+
bindings = {
|
|
361
|
+
'?msg': message,
|
|
362
|
+
'?creator': _solidLogic.store.any(message, ns.foaf('maker')),
|
|
363
|
+
'?date': _solidLogic.store.any(message, DCT('created')),
|
|
364
|
+
'?content': _solidLogic.store.any(message, ns.sioc('content'))
|
|
365
|
+
};
|
|
366
|
+
_context6.next = 3;
|
|
367
|
+
return renderMessage(bindings, true);
|
|
368
|
+
case 3:
|
|
369
|
+
case "end":
|
|
370
|
+
return _context6.stop();
|
|
371
|
+
}
|
|
372
|
+
}, _callee6);
|
|
373
|
+
}));
|
|
374
|
+
return function addMessage(_x7) {
|
|
375
|
+
return _ref6.apply(this, arguments);
|
|
344
376
|
};
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
break;
|
|
367
|
-
}
|
|
368
|
-
}
|
|
369
|
-
if (!done) {
|
|
370
|
-
messageTable.appendChild(tr);
|
|
371
|
-
}
|
|
372
|
-
var td1 = dom.createElement('td');
|
|
373
|
-
tr.appendChild(td1);
|
|
374
|
-
creatorAndDate(td1, creator, UI.widgets.shortDate(dateString), message);
|
|
375
|
-
var td2 = dom.createElement('td');
|
|
376
|
-
tr.appendChild(td2);
|
|
377
|
-
var pre = dom.createElement('p');
|
|
378
|
-
pre.setAttribute('style', messageBodyStyle + (fresh ? 'background-color: #e8ffe8;' : 'background-color: #white;'));
|
|
379
|
-
td2.appendChild(pre);
|
|
380
|
-
pre.textContent = content.value;
|
|
381
|
-
var td3 = dom.createElement('td');
|
|
382
|
-
tr.appendChild(td3);
|
|
383
|
-
var delButton = dom.createElement('button');
|
|
384
|
-
td3.appendChild(delButton);
|
|
385
|
-
delButton.textContent = '-';
|
|
386
|
-
tr.setAttribute('class', 'hoverControl'); // See tabbedtab.css (sigh global CSS)
|
|
387
|
-
delButton.setAttribute('class', 'hoverControlHide');
|
|
388
|
-
delButton.setAttribute('style', 'color: red;');
|
|
389
|
-
delButton.addEventListener('click', function (_event) {
|
|
390
|
-
td3.removeChild(delButton); // Ask -- are you sure?
|
|
391
|
-
var cancelButton = dom.createElement('button');
|
|
392
|
-
cancelButton.textContent = 'cancel';
|
|
393
|
-
td3.appendChild(cancelButton).addEventListener('click', function (_event) {
|
|
394
|
-
td3.removeChild(sureButton);
|
|
395
|
-
td3.removeChild(cancelButton);
|
|
396
|
-
td3.appendChild(delButton);
|
|
397
|
-
}, false);
|
|
398
|
-
var sureButton = dom.createElement('button');
|
|
399
|
-
sureButton.textContent = 'Delete message';
|
|
400
|
-
td3.appendChild(sureButton).addEventListener('click', /*#__PURE__*/function () {
|
|
401
|
-
var _ref5 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee5(_event) {
|
|
402
|
-
var _yield$appendMsg2, sts;
|
|
403
|
-
return _regenerator["default"].wrap(function _callee5$(_context5) {
|
|
404
|
-
while (1) switch (_context5.prev = _context5.next) {
|
|
405
|
-
case 0:
|
|
406
|
-
// alain: test for delete or edit depending on me = maker
|
|
407
|
-
td3.removeChild(sureButton);
|
|
408
|
-
td3.removeChild(cancelButton);
|
|
409
|
-
// deleteMessage(message) // alain or sendMessage(message, 'delete' or 'edit') //alain
|
|
410
|
-
if (!(me.value === _solidLogic.store.any(message, ns.foaf('maker')).value)) {
|
|
411
|
-
_context5.next = 8;
|
|
412
|
-
break;
|
|
413
|
-
}
|
|
414
|
-
_context5.next = 5;
|
|
415
|
-
return appendMsg();
|
|
416
|
-
case 5:
|
|
417
|
-
_yield$appendMsg2 = _context5.sent;
|
|
418
|
-
sts = _yield$appendMsg2.sts;
|
|
419
|
-
// alain
|
|
420
|
-
updater.update([], sts);
|
|
421
|
-
case 8:
|
|
422
|
-
case "end":
|
|
423
|
-
return _context5.stop();
|
|
377
|
+
}();
|
|
378
|
+
var renderMessage = /*#__PURE__*/function () {
|
|
379
|
+
var _ref7 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee9(bindings, fresh) {
|
|
380
|
+
var creator, message, date, content, dateString, tr, done, ele, td1, td2, pre, td3, delButton;
|
|
381
|
+
return _regenerator["default"].wrap(function _callee9$(_context9) {
|
|
382
|
+
while (1) switch (_context9.prev = _context9.next) {
|
|
383
|
+
case 0:
|
|
384
|
+
creator = bindings['?creator'];
|
|
385
|
+
message = bindings['?msg'];
|
|
386
|
+
date = bindings['?date'];
|
|
387
|
+
content = bindings['?content'];
|
|
388
|
+
dateString = date.value;
|
|
389
|
+
tr = dom.createElement('tr');
|
|
390
|
+
tr.AJAR_date = dateString;
|
|
391
|
+
tr.AJAR_subject = message;
|
|
392
|
+
done = false;
|
|
393
|
+
ele = messageTable.firstChild;
|
|
394
|
+
case 10:
|
|
395
|
+
if (ele) {
|
|
396
|
+
_context9.next = 12;
|
|
397
|
+
break;
|
|
424
398
|
}
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
399
|
+
return _context9.abrupt("break", 19);
|
|
400
|
+
case 12:
|
|
401
|
+
if (!(dateString > ele.AJAR_date && newestFirst || dateString < ele.AJAR_date && !newestFirst)) {
|
|
402
|
+
_context9.next = 16;
|
|
403
|
+
break;
|
|
404
|
+
}
|
|
405
|
+
messageTable.insertBefore(tr, ele);
|
|
406
|
+
done = true;
|
|
407
|
+
return _context9.abrupt("break", 19);
|
|
408
|
+
case 16:
|
|
409
|
+
ele = ele.nextSibling;
|
|
410
|
+
_context9.next = 10;
|
|
411
|
+
break;
|
|
412
|
+
case 19:
|
|
413
|
+
if (!done) {
|
|
414
|
+
messageTable.appendChild(tr);
|
|
415
|
+
}
|
|
416
|
+
td1 = dom.createElement('td');
|
|
417
|
+
tr.appendChild(td1);
|
|
418
|
+
creatorAndDate(td1, creator, UI.widgets.shortDate(dateString), message);
|
|
419
|
+
td2 = dom.createElement('td');
|
|
420
|
+
tr.appendChild(td2);
|
|
421
|
+
pre = dom.createElement('p');
|
|
422
|
+
pre.setAttribute('style', messageBodyStyle + (fresh ? 'background-color: #e8ffe8;' : 'background-color: #white;'));
|
|
423
|
+
td2.appendChild(pre);
|
|
424
|
+
pre.textContent = content.value;
|
|
425
|
+
td3 = dom.createElement('td');
|
|
426
|
+
tr.appendChild(td3);
|
|
427
|
+
delButton = dom.createElement('button');
|
|
428
|
+
td3.appendChild(delButton);
|
|
429
|
+
delButton.textContent = '-';
|
|
430
|
+
tr.setAttribute('class', 'hoverControl'); // See tabbedtab.css (sigh global CSS)
|
|
431
|
+
delButton.setAttribute('class', 'hoverControlHide');
|
|
432
|
+
delButton.setAttribute('style', 'color: red;');
|
|
433
|
+
delButton.addEventListener('click', /*#__PURE__*/function () {
|
|
434
|
+
var _ref8 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee8(_event) {
|
|
435
|
+
var cancelButton, sureButton;
|
|
436
|
+
return _regenerator["default"].wrap(function _callee8$(_context8) {
|
|
437
|
+
while (1) switch (_context8.prev = _context8.next) {
|
|
438
|
+
case 0:
|
|
439
|
+
td3.removeChild(delButton); // Ask -- are you sure?
|
|
440
|
+
cancelButton = dom.createElement('button');
|
|
441
|
+
cancelButton.textContent = 'cancel';
|
|
442
|
+
td3.appendChild(cancelButton).addEventListener('click', function (_event) {
|
|
443
|
+
td3.removeChild(sureButton);
|
|
444
|
+
td3.removeChild(cancelButton);
|
|
445
|
+
td3.appendChild(delButton);
|
|
446
|
+
}, false);
|
|
447
|
+
sureButton = dom.createElement('button');
|
|
448
|
+
sureButton.textContent = 'Delete message';
|
|
449
|
+
td3.appendChild(sureButton).addEventListener('click', /*#__PURE__*/function () {
|
|
450
|
+
var _ref9 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee7(_event) {
|
|
451
|
+
var _yield$appendMsg2, sts;
|
|
452
|
+
return _regenerator["default"].wrap(function _callee7$(_context7) {
|
|
453
|
+
while (1) switch (_context7.prev = _context7.next) {
|
|
454
|
+
case 0:
|
|
455
|
+
// alain: test for delete or edit depending on me = maker
|
|
456
|
+
td3.removeChild(sureButton);
|
|
457
|
+
td3.removeChild(cancelButton);
|
|
458
|
+
// deleteMessage(message) // alain or sendMessage(message, 'delete' or 'edit') //alain
|
|
459
|
+
if (!(me.value === _solidLogic.store.any(message, ns.foaf('maker')).value)) {
|
|
460
|
+
_context7.next = 9;
|
|
461
|
+
break;
|
|
462
|
+
}
|
|
463
|
+
_context7.next = 5;
|
|
464
|
+
return appendMsg();
|
|
465
|
+
case 5:
|
|
466
|
+
_yield$appendMsg2 = _context7.sent;
|
|
467
|
+
sts = _yield$appendMsg2.sts;
|
|
468
|
+
_context7.next = 9;
|
|
469
|
+
return updater.updateMany([], sts);
|
|
470
|
+
case 9:
|
|
471
|
+
case "end":
|
|
472
|
+
return _context7.stop();
|
|
473
|
+
}
|
|
474
|
+
}, _callee7);
|
|
475
|
+
}));
|
|
476
|
+
return function (_x11) {
|
|
477
|
+
return _ref9.apply(this, arguments);
|
|
478
|
+
};
|
|
479
|
+
}(), false);
|
|
480
|
+
case 7:
|
|
481
|
+
case "end":
|
|
482
|
+
return _context8.stop();
|
|
483
|
+
}
|
|
484
|
+
}, _callee8);
|
|
485
|
+
}));
|
|
486
|
+
return function (_x10) {
|
|
487
|
+
return _ref8.apply(this, arguments);
|
|
488
|
+
};
|
|
489
|
+
}(), false);
|
|
490
|
+
case 38:
|
|
491
|
+
case "end":
|
|
492
|
+
return _context9.stop();
|
|
493
|
+
}
|
|
494
|
+
}, _callee9);
|
|
495
|
+
}));
|
|
496
|
+
return function renderMessage(_x8, _x9) {
|
|
497
|
+
return _ref7.apply(this, arguments);
|
|
498
|
+
};
|
|
499
|
+
}();
|
|
433
500
|
|
|
434
501
|
// Messages with date, author etc
|
|
435
502
|
|