|
@@ -3,11 +3,6 @@ import { CommonModule, DatePipe } from '@angular/common';
|
|
|
import { FormsModule } from '@angular/forms';
|
|
|
import { NavComponent } from '../../../app/components/nav/nav.component';
|
|
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
|
-import {
|
|
|
- AlertController,
|
|
|
- LoadingController,
|
|
|
- ToastController,
|
|
|
-} from '@ionic/angular';
|
|
|
import * as Parse from 'parse';
|
|
|
import { ImagePreviewComponent } from '../../../app/components/image-preview/image-preview.component';
|
|
|
import { AiChatService } from '../../../services/aichart.service';
|
|
@@ -15,7 +10,12 @@ import { UploadComponent } from '../../../app/components/upload/upload.component
|
|
|
import { GiftModalComponent } from '../../../app/components/gift-modal/gift-modal.component';
|
|
|
import { MessageService } from '../../../services/message.service';
|
|
|
import { ConnectTaskService } from '../../../services/connectTask.service';
|
|
|
-import { ionicStandaloneModules } from '../../ionic-standalone.modules';
|
|
|
+import {
|
|
|
+ ionicStandaloneModules,
|
|
|
+ AlertController,
|
|
|
+ LoadingController,
|
|
|
+ ToastController,
|
|
|
+} from '../../ionic-standalone.modules';
|
|
|
|
|
|
@Component({
|
|
|
selector: 'app-profile',
|
|
@@ -133,9 +133,9 @@ export class ProfileComponent implements OnInit {
|
|
|
let query2 = new Parse.Query('Friends');
|
|
|
query2.equalTo('user', this.uid);
|
|
|
query2.equalTo('friend', this.currentUser?.id);
|
|
|
- let query = Parse.Query.or(query1,query2);
|
|
|
+ let query = Parse.Query.or(query1, query2);
|
|
|
query.notEqualTo('isDeleted', true);
|
|
|
- query.select('objectId','isPass');
|
|
|
+ query.select('objectId', 'isPass','channel');
|
|
|
this.friends = await query.first();
|
|
|
}
|
|
|
async getProfile() {
|
|
@@ -328,7 +328,10 @@ export class ProfileComponent implements OnInit {
|
|
|
async sendVideoCallInvite() {
|
|
|
this.iscall = true;
|
|
|
// this.router.navigate(['live/link-room/' + this.room?.id]);
|
|
|
- await this.msgSer.subscribeMessage(this.uid, { message: true,presence:true }); //进入对方主播频道发送聊天邀请
|
|
|
+ await this.msgSer.subscribeMessage(this.uid, {
|
|
|
+ message: true,
|
|
|
+ presence: true,
|
|
|
+ }); //进入对方主播频道发送聊天邀请
|
|
|
this.msgSer.publishMessage('USERCALLINVITATION', this.uid);
|
|
|
}
|
|
|
async onCloseCall() {
|