@tiledesk/tiledesk-server 2.2.36 → 2.2.37
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.
@@ -56,8 +56,9 @@ class Chat21Handler {
|
|
56
56
|
typing(message, timestamp) {
|
57
57
|
return new Promise(function (resolve, reject) {
|
58
58
|
|
59
|
+
// if privateFor skip typing
|
59
60
|
//no typing for subtype info
|
60
|
-
if (message.attributes && message.attributes.subtype && message.attributes.subtype==='info') {
|
61
|
+
if (message.attributes && message.attributes.subtype && (message.attributes.subtype==='info' || message.attributes.subtype==='private')) {
|
61
62
|
return resolve();
|
62
63
|
}else {
|
63
64
|
chat21.conversations.typing(message.recipient, message.sender, message.text, timestamp).finally(function() {
|
package/package.json
CHANGED
@@ -58,6 +58,10 @@ listen() {
|
|
58
58
|
|
59
59
|
if (message.sender != message.request.lead.lead_id) {
|
60
60
|
winston.verbose("sending sendToUserEmailChannelEmail for EMAIL or FORM channel");
|
61
|
+
|
62
|
+
if (message.attributes && message.attributes.subtype==='private') {
|
63
|
+
return winston.debug("not sending sendToUserEmailChannelEmail for attributes.subtype private messages");
|
64
|
+
}
|
61
65
|
return that.sendToUserEmailChannelEmail(message.id_project, message);
|
62
66
|
} else {
|
63
67
|
|
@@ -133,6 +137,9 @@ listen() {
|
|
133
137
|
});
|
134
138
|
});
|
135
139
|
|
140
|
+
|
141
|
+
|
142
|
+
|
136
143
|
// requestEvent.on("request.update.preflight", function(request) {
|
137
144
|
|
138
145
|
// winston.info("requestEvent request.update.preflight");
|
@@ -335,7 +342,10 @@ sendToAgentEmailChannelEmail(projectid, message) {
|
|
335
342
|
}
|
336
343
|
|
337
344
|
winston.debug("savedRequest", savedRequest);
|
345
|
+
|
338
346
|
|
347
|
+
|
348
|
+
|
339
349
|
// TODO fare il controllo anche sul dipartimento con modalità assigned o pooled
|
340
350
|
if (savedRequest.status==RequestConstants.UNASSIGNED) { //POOLED
|
341
351
|
|