mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 12:37:53 +00:00
add paticipant on chat
This commit is contained in:
@@ -109,6 +109,7 @@ export class GroupMessagesPage implements OnInit, OnChanges, AfterViewInit, OnDe
|
|||||||
this.loggedUserChat = SessionStore.user.ChatData['data'];
|
this.loggedUserChat = SessionStore.user.ChatData['data'];
|
||||||
this.isGroupCreated = true;
|
this.isGroupCreated = true;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
ngOnChanges(changes: SimpleChanges): void {
|
ngOnChanges(changes: SimpleChanges): void {
|
||||||
|
|
||||||
@@ -127,6 +128,13 @@ export class GroupMessagesPage implements OnInit, OnChanges, AfterViewInit, OnDe
|
|||||||
|
|
||||||
this.deleteRecording();
|
this.deleteRecording();
|
||||||
|
|
||||||
|
|
||||||
|
if (SessionStore.user.ChatData.data.userId == this.ChatSystemService.getGroupRoom(this.roomId).u._id) {
|
||||||
|
this.isAdmin = true
|
||||||
|
} else {
|
||||||
|
this.isAdmin = false
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
@@ -524,6 +532,9 @@ export class GroupMessagesPage implements OnInit, OnChanges, AfterViewInit, OnDe
|
|||||||
|
|
||||||
|
|
||||||
async openOptions(ev: any) {
|
async openOptions(ev: any) {
|
||||||
|
|
||||||
|
console.trace(this.room)
|
||||||
|
|
||||||
const popover = await this.popoverController.create({
|
const popover = await this.popoverController.create({
|
||||||
component: ChatPopoverPage,
|
component: ChatPopoverPage,
|
||||||
cssClass: 'chat-popover modal-desktop',
|
cssClass: 'chat-popover modal-desktop',
|
||||||
|
|||||||
@@ -34,6 +34,9 @@ export class ChatPopoverPage implements OnInit {
|
|||||||
this.roomId = this.navParams.get('roomId');
|
this.roomId = this.navParams.get('roomId');
|
||||||
this.members = this.navParams.get('members');
|
this.members = this.navParams.get('members');
|
||||||
this.isAdmin = this.navParams.get('isAdmin');
|
this.isAdmin = this.navParams.get('isAdmin');
|
||||||
|
|
||||||
|
console.log(this.navParams.data)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
|||||||
@@ -97,6 +97,13 @@ export class PublicationFromMvService {
|
|||||||
if(e.FileType == 'video' && e.toUpload) {
|
if(e.FileType == 'video' && e.toUpload) {
|
||||||
e.OriginalFileName = e?.chucksManager?.path?.replace(".mp4", "") || e.OriginalFileName
|
e.OriginalFileName = e?.chucksManager?.path?.replace(".mp4", "") || e.OriginalFileName
|
||||||
e.FileExtension = e.FileExtension || "mp4"
|
e.FileExtension = e.FileExtension || "mp4"
|
||||||
|
e.Base64 = ''
|
||||||
|
|
||||||
|
|
||||||
|
if(e.FileType == 'video' && !e.toUpload) {
|
||||||
|
e.Base64 = e.url
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
return e
|
return e
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -4,4 +4,4 @@ import { environment as oaprProd } from './suport/oapr'
|
|||||||
import { DevDev } from './suport/dev'
|
import { DevDev } from './suport/dev'
|
||||||
|
|
||||||
|
|
||||||
export const environment: Environment = DevDev;
|
export const environment: Environment = oaprProd;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { Environment } from './../app/models/envarioment'
|
import { Environment } from './../app/models/envarioment'
|
||||||
import { environment as oaprDev } from './suport/oapr'
|
import { environment as oaprDev } from './suport/oapr'
|
||||||
// import { doneITDev } from './suport/doneIt'
|
import { doneITDev } from './suport/doneIt'
|
||||||
import { DevDev } from './suport/dev'
|
import { DevDev } from './suport/dev'
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -2,9 +2,6 @@
|
|||||||
"folders": [
|
"folders": [
|
||||||
{
|
{
|
||||||
"path": "."
|
"path": "."
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "../sih/ORM"
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"settings": {
|
"settings": {
|
||||||
|
|||||||
Reference in New Issue
Block a user