@chat21/chat21-ionic 3.4.30-rc2 → 3.4.30-rc3

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,14 +8,18 @@
8
8
  ### **Copyrigth**:
9
9
  *Tiledesk SRL*
10
10
 
11
+ # 3.4.30-rc3
12
+ - **changed**: when the app is in background, play a sound whenever a new message arrives.
13
+
14
+ # 3.4.29 in PROD
15
+ - **bug-fixed**: web (Chrome >= 144) `ion-content` stopped scrolling on some pages (conversation list / contacts directory / unassigned); removed the forced `--overflow: hidden` and handled scrolling on Ionic’s internal scroll container via `ion-content::part(scroll)`
16
+
11
17
  # 3.4.29-rc2
12
18
  - **changed**: minor updates on API to upload file/image into chat
13
19
 
14
20
  # 3.4.29-rc1
15
21
  - **changed**: API for upload a file/image into chat
16
22
 
17
- # 3.4.29 in PROD
18
- - **bug-fixed**: web (Chrome >= 144) `ion-content` stopped scrolling on some pages (conversation list / contacts directory / unassigned); removed the forced `--overflow: hidden` and handled scrolling on Ionic’s internal scroll container via `ion-content::part(scroll)`
19
23
 
20
24
  # 3.4.28 in PROD
21
25
  - **bug-fixed**: cannot do project subscription if last_project object is not a project_user obj
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@chat21/chat21-ionic",
3
3
  "author": "Tiledesk SRL",
4
- "version": "3.4.30-rc2",
4
+ "version": "3.4.30-rc3",
5
5
  "license": "MIT License",
6
6
  "homepage": "https://tiledesk.com/",
7
7
  "repository": {
@@ -1146,6 +1146,10 @@ export class AppComponent implements OnInit {
1146
1146
  if (changes.value && changes.value.sender !== currentUser.uid) {
1147
1147
  let checkIfStatusChanged = changes.value.is_new === changes.previousValue.is_new? true: false
1148
1148
  let checkIfUidChanged = changes.value.uid === changes.previousValue.uid? true: false
1149
+ if(!this.isTabVisible){
1150
+ this.manageTabNotification('new_message', true);
1151
+ return
1152
+ }
1149
1153
  if(changes.value.is_new && checkIfStatusChanged && checkIfUidChanged){
1150
1154
  this.manageTabNotification('new_message', true);
1151
1155
  }