This commit is contained in:
Peter Maquiran
2022-03-25 14:32:15 +01:00
parent 7ef93a2aff
commit f2cf316329
3 changed files with 23 additions and 11 deletions
+1 -1
View File
@@ -143,7 +143,7 @@ export class MessageService {
this.uploadingFile = false this.uploadingFile = false
if(uploadSuccessfully || this.hasSendAttachment == false) { if(uploadSuccessfully) {
this.hasSendAttachment = true this.hasSendAttachment = true
this.errorUploadingAttachment = false this.errorUploadingAttachment = false
this.temporaryData = {} this.temporaryData = {}
+2 -4
View File
@@ -367,8 +367,6 @@ export class RoomService {
if(this.messages[i]?._id == id ) { if(this.messages[i]?._id == id ) {
console.log(_id,'==',this.messages[i]?._id, true) console.log(_id,'==',this.messages[i]?._id, true)
this.messages.splice(i, 1) this.messages.splice(i, 1)
@@ -382,7 +380,7 @@ export class RoomService {
if (SessionStore.user.RochetChatUser == this.messages[i].u.username) { if (SessionStore.user.RochetChatUser == this.messages[i].u.username) {
const allMemberThatIsOffline = this.getAllMemberThatIsOffline() const allMemberThatIsOffline = this.getAllMemberThatIsOffline()
await DeleteMessageModel.create({ DeleteMessageModel.create({
messageId: this.messages[i]._id, messageId: this.messages[i]._id,
rid: this.messages[i].rid, rid: this.messages[i].rid,
ts: this.messages[i].ts, ts: this.messages[i].ts,
@@ -391,7 +389,7 @@ export class RoomService {
}) })
} }
await this.messages[i].delateDB() this.messages[i].delateDB()
return true return true
+20 -6
View File
@@ -3,17 +3,31 @@
// The list of file replacements can be found in `angular.json`. // The list of file replacements can be found in `angular.json`.
export const environment = { export const environment = {
production: false, production: false,
apiURL: 'https://gabinetedigital.dyndns.info/GabineteDigital.Services/V5/api/',
//apiURL: 'http://gpr-dev-01.gabinetedigital.local/GabineteDigital.Services/V5/api/', //apiURL: 'https://gabinetedigital.dyndns.info/GabineteDigital.Services/V5/api/',
apiChatUrl: 'https://gabinetedigitalchat.dyndns.info/api/v1/',
apiWsChatUrl: 'wss://gabinetedigitalchat.dyndns.info/websocket', apiURL: 'http://gpr-dev-01.gabinetedigital.local/GabineteDigital.Services/V5/api/',
//apiChatUrl: 'https://www.tabularium.pt/api/v1/',
/* apiChatUrl: 'http://chat.gabinetedigital.local:3000/api/v1/', */ /* apiChatUrl: 'https://gabinetedigitalchat.dyndns.info/api/v1/',
apiWsChatUrl: 'wss://gabinetedigitalchat.dyndns.info/websocket', */
apiChatUrl: 'https://www.tabularium.pt/api/v1/',
apiWsChatUrl: 'wss://www.tabularium.pt/websocket',
//apiChatUrl: 'http://chat.gabinetedigital.local:3000/api/v1/',
domain: 'gabinetedigital.local', //gabinetedigital.local domain: 'gabinetedigital.local', //gabinetedigital.local
defaultuser: 'paulo.pinto@gabinetedigital.local',//paulo.pinto paulo.pinto@gabinetedigital.local defaultuser: 'paulo.pinto@gabinetedigital.local',//paulo.pinto paulo.pinto@gabinetedigital.local
defaultuserpwd: 'tabteste@006', //tabteste@006, defaultuserpwd: 'tabteste@006', //tabteste@006,
chatOffline: true chatOffline: true
}; };
/* /*