diff --git a/package-lock.json b/package-lock.json
index 761c43cce..afca13576 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -42,6 +42,7 @@
"@capacitor/keyboard": "^4.1.0",
"@capacitor/local-notifications": "^4.1.4",
"@capacitor/network": "^4.1.0",
+ "@capacitor/push-notifications": "^4.1.2",
"@capacitor/share": "^4.1.0",
"@capacitor/storage": "^1.2.5",
"@fortawesome/angular-fontawesome": "^0.9.0",
@@ -3533,6 +3534,14 @@
"@capacitor/core": "^4.0.0"
}
},
+ "node_modules/@capacitor/push-notifications": {
+ "version": "4.1.2",
+ "resolved": "https://registry.npmjs.org/@capacitor/push-notifications/-/push-notifications-4.1.2.tgz",
+ "integrity": "sha512-ok6CGvedwK1azmf8VWhrNlg6jhi4PFz3HoyS0GNE2ew7+JGnxN77sgK5q1TVzdkge+vkqipO6uu5bD1xfj/pWQ==",
+ "peerDependencies": {
+ "@capacitor/core": "^4.0.0"
+ }
+ },
"node_modules/@capacitor/share": {
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/@capacitor/share/-/share-4.1.0.tgz",
@@ -40727,6 +40736,12 @@
"integrity": "sha512-GMJ6LmxmrFA55rAaYxgm4tKSZyUmuLRreQz5Gdu0P09Ja8abSjmXa/DX16gOu1I1+wqHWm2rRI6nPkeUH55Ibw==",
"requires": {}
},
+ "@capacitor/push-notifications": {
+ "version": "4.1.2",
+ "resolved": "https://registry.npmjs.org/@capacitor/push-notifications/-/push-notifications-4.1.2.tgz",
+ "integrity": "sha512-ok6CGvedwK1azmf8VWhrNlg6jhi4PFz3HoyS0GNE2ew7+JGnxN77sgK5q1TVzdkge+vkqipO6uu5bD1xfj/pWQ==",
+ "requires": {}
+ },
"@capacitor/share": {
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/@capacitor/share/-/share-4.1.0.tgz",
diff --git a/package.json b/package.json
index 30e7a5920..c9fdb520b 100644
--- a/package.json
+++ b/package.json
@@ -52,6 +52,7 @@
"@capacitor/keyboard": "^4.1.0",
"@capacitor/local-notifications": "^4.1.4",
"@capacitor/network": "^4.1.0",
+ "@capacitor/push-notifications": "^4.1.2",
"@capacitor/share": "^4.1.0",
"@capacitor/storage": "^1.2.5",
"@fortawesome/angular-fontawesome": "^0.9.0",
diff --git a/src/app/modals/profile/profile.page.ts b/src/app/modals/profile/profile.page.ts
index a9618ce7f..06b324206 100644
--- a/src/app/modals/profile/profile.page.ts
+++ b/src/app/modals/profile/profile.page.ts
@@ -186,6 +186,8 @@ export class ProfilePage implements OnInit {
}
else if (Service === "gabinete-digital" && Object === "expedientes-pr") {
this.zone.run(() => this.router.navigate(['/home/gabinete-digital/expedientes-pr', IdObject, 'gabinete-digital']));
+ } else if (Service === "chat") {
+ this.zone.run(() => this.router.navigate(['/home/chat', IdObject, 'chat']));
}
// this.notificationservice.tempClearArray();
diff --git a/src/app/pages/chat/messages/messages.page.html b/src/app/pages/chat/messages/messages.page.html
index f626c951b..4a4999453 100644
--- a/src/app/pages/chat/messages/messages.page.html
+++ b/src/app/pages/chat/messages/messages.page.html
@@ -258,7 +258,7 @@
-