@chat21/chat21-ionic 3.4.27-rc5 → 3.4.27-rc7
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
|
@@ -8,6 +8,14 @@
|
|
|
8
8
|
### **Copyrigth**:
|
|
9
9
|
*Tiledesk SRL*
|
|
10
10
|
|
|
11
|
+
|
|
12
|
+
# 3.4.27-rc7
|
|
13
|
+
- **bug-fixed**: Scrolling to the last message when opening a conversation
|
|
14
|
+
- **bug-fixed**: Loading in the conversation list disabled when removing the last conversation
|
|
15
|
+
|
|
16
|
+
# 3.4.27-rc6
|
|
17
|
+
- **bug-fixed**: user for dashboard app is incorrect
|
|
18
|
+
|
|
11
19
|
# 3.4.27-rc5
|
|
12
20
|
- **added**: managed roles in sidebar e navbar
|
|
13
21
|
- **bug-fixed**: projectId and supportMode url is not saved in localstorage
|
package/package.json
CHANGED
|
@@ -121,6 +121,7 @@ export class TiledeskAuthService {
|
|
|
121
121
|
this.http.post(this.URL_TILEDESK_SIGNIN_WITH_CUSTOM_TOKEN, null, requestOptions).subscribe((data) => {
|
|
122
122
|
if (data['success'] && data['token']) {
|
|
123
123
|
that.tiledeskToken = data['token'];
|
|
124
|
+
data['user'].token = tiledeskToken; // mantengo il token custom nell'oggetto user
|
|
124
125
|
that.createCompleteUser(data['user']);
|
|
125
126
|
this.checkAndSetInStorageTiledeskToken(that.tiledeskToken)
|
|
126
127
|
this.BS_IsONLINE.next(true)
|
|
@@ -177,7 +178,8 @@ export class TiledeskAuthService {
|
|
|
177
178
|
this.currentUser = member;
|
|
178
179
|
this.logger.log('[TILEDESK-AUTH] - createCompleteUser member ', member);
|
|
179
180
|
this.appStorage.setItem('currentUser', JSON.stringify(this.currentUser));
|
|
180
|
-
|
|
181
|
+
const { iat, aud, iss, jti, ...cleanUser } = user; //destructuring and rest user object
|
|
182
|
+
localStorage.setItem('user', JSON.stringify(cleanUser));
|
|
181
183
|
|
|
182
184
|
} catch (err) {
|
|
183
185
|
this.logger.error('[TILEDESK-AUTH]- createCompleteUser ERR ', err)
|