@chat21/chat21-ionic 3.0.82-rc.2 → 3.0.82-rc.3
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/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
# chat21-ionic ver 3.0
|
|
2
2
|
|
|
3
|
+
### 3.0.82-rc.3
|
|
4
|
+
- bug-fixed: incorrect dashboard urls in navbar
|
|
5
|
+
- changed: used logger in mqtt auth service
|
|
6
|
+
|
|
3
7
|
### 3.0.82-rc.2
|
|
4
8
|
- changed: 'force' parameter to /close post as body content
|
|
5
9
|
- changed: enabled MTT
|
|
6
10
|
- changed: position of 'LogOut' button in sidebar-user-detail component
|
|
11
|
+
- bug-fixed: removed scrollbar on firefox browser in conversation-list, contacts-directory pages
|
|
12
|
+
|
|
7
13
|
### 3.0.82-rc.1
|
|
8
14
|
- changed: forceArchive to force while calling /close API URL
|
|
9
15
|
- changed: chat21Client.js from 1.12.1 to 1.12.2
|
package/package.json
CHANGED
|
@@ -161,12 +161,13 @@ export class NavbarComponent implements OnInit {
|
|
|
161
161
|
const baseUrl = this.appConfigProvider.getConfig().dashboardUrl
|
|
162
162
|
let url = baseUrl
|
|
163
163
|
if(event === 'projectSettings'){
|
|
164
|
-
url = baseUrl + 'project/' + this.project.id_project.id + '/project-settings/general'
|
|
164
|
+
url = baseUrl + '#/project/' + this.project.id_project.id + '/project-settings/general' + '?token=' + this.tiledeskToken
|
|
165
165
|
}else if(event ==='allProjects'){
|
|
166
|
-
url = baseUrl + '
|
|
166
|
+
url = baseUrl + '#/projects/' + '?token=' + this.tiledeskToken
|
|
167
167
|
}else if('addProject'){
|
|
168
|
-
url = baseUrl + 'create-new-project/'
|
|
168
|
+
url = baseUrl + '#/create-new-project/' + '?token=' + this.tiledeskToken
|
|
169
169
|
}
|
|
170
|
+
console.log('onClickDropdownOption-->', url)
|
|
170
171
|
window.open(url, '_blank');
|
|
171
172
|
}
|
|
172
173
|
|
|
@@ -180,7 +181,7 @@ export class NavbarComponent implements OnInit {
|
|
|
180
181
|
// this.unsubscribe$.next();
|
|
181
182
|
// this.unsubscribe$.complete();
|
|
182
183
|
|
|
183
|
-
const url = this.appConfigProvider.getConfig().dashboardUrl +
|
|
184
|
+
const url = this.appConfigProvider.getConfig().dashboardUrl + `#/project/${id_project}/home`
|
|
184
185
|
window.open(url, '_blank');
|
|
185
186
|
|
|
186
187
|
}
|
|
@@ -64,15 +64,14 @@ export class MQTTAuthService extends MessagingAuthService {
|
|
|
64
64
|
|
|
65
65
|
// logout(callback) {
|
|
66
66
|
logout(): Promise<boolean> {
|
|
67
|
-
this.logger.
|
|
67
|
+
this.logger.debug("[MQTTAuthService] logout: closing mqtt connection...");
|
|
68
68
|
return new Promise((resolve, reject) => {
|
|
69
69
|
this.chat21Service.chatClient.close(() => {
|
|
70
|
-
console.log("[MQTTAuthService] logout: mqtt connection closed. OK");
|
|
71
70
|
// remove
|
|
72
71
|
// this.appStorage.removeItem('tiledeskToken');
|
|
73
72
|
// this.appStorage.removeItem('currentUser');
|
|
74
73
|
this.currentUser = null;
|
|
75
|
-
|
|
74
|
+
this.logger.debug("[MQTTAuthService] logout: mqtt connection closed. user removed. OK");
|
|
76
75
|
this.BSSignOut.next(true);
|
|
77
76
|
this.BSAuthStateChanged.next('offline');
|
|
78
77
|
resolve(true)
|
|
@@ -94,7 +93,7 @@ z
|
|
|
94
93
|
|
|
95
94
|
/** */
|
|
96
95
|
getToken(): string {
|
|
97
|
-
this.logger.
|
|
96
|
+
this.logger.debug('[MQTTAuthService]::getToken');
|
|
98
97
|
return this.token;
|
|
99
98
|
}
|
|
100
99
|
|
|
@@ -255,19 +254,19 @@ z
|
|
|
255
254
|
// const that = this;
|
|
256
255
|
this.http.post(this.URL_TILEDESK_CREATE_CUSTOM_TOKEN, postData, { headers, responseType})
|
|
257
256
|
.subscribe(data => {
|
|
258
|
-
this.logger.
|
|
257
|
+
this.logger.debug("[MQTTAuthService] connectWithCustomToken: **** data", data)
|
|
259
258
|
const result = JSON.parse(data);
|
|
260
259
|
this.connectMQTT(result);
|
|
261
260
|
}, error => {
|
|
262
|
-
this.logger.
|
|
261
|
+
this.logger.error(error);
|
|
263
262
|
});
|
|
264
263
|
}
|
|
265
264
|
|
|
266
265
|
connectMQTT(credentials: any): any {
|
|
267
|
-
this.logger.
|
|
266
|
+
this.logger.debug('[MQTTAuthService] connectMQTT: **** credentials:', credentials);
|
|
268
267
|
const userid = credentials.userid;
|
|
269
268
|
this.chat21Service.chatClient.connect(userid, credentials.token, () => {
|
|
270
|
-
this.logger.
|
|
269
|
+
this.logger.debug('[MQTTAuthService] connectMQTT: Chat connected.');
|
|
271
270
|
this.BSAuthStateChanged.next('online');
|
|
272
271
|
});
|
|
273
272
|
}
|