Skip to content

Commit eb9d9aa

Browse files
committed
"ack" management improvements
minor fixes
1 parent 142174a commit eb9d9aa

File tree

6 files changed

+158
-272
lines changed

6 files changed

+158
-272
lines changed

mqttclient/chat21client.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class Chat21Client {
2222
this.client = null;
2323
this.reconnections = 0 // just to check how many reconnections
2424
this.client_id = this.uuidv4();
25-
this.log = options._log ? true : false;
25+
this.log = options.log ? true : false;
2626
if (options && options.MQTTendpoint) {
2727
if (options.MQTTendpoint.startsWith('/')) {
2828
if (this.log) {
@@ -763,14 +763,17 @@ class Chat21Client {
763763
}
764764

765765
conversationDetail(conversWith, callback) {
766+
console.log("conversationDetail(). searching on user:", this.user_id, " - conversWith:", conversWith)
766767
this.crossConversationDetail(conversWith, false, callback);
767768
}
768769

769770
archivedConversationDetail(conversWith, callback) {
771+
console.log("archivedConversationDetail(). searching on user:", this.user_id, " - conversWith:", conversWith)
770772
this.crossConversationDetail(conversWith, true, callback);
771773
}
772774

773775
crossConversationDetail(conversWith, archived, callback) {
776+
console.log("searching on user:", this.user_id, " - conv of conversWith:", conversWith, " - archived:", archived)
774777
let path = "conversations";
775778
if (archived) {
776779
path = "archived_conversations"

0 commit comments

Comments
 (0)