Browse Source

Fixes

master
Global Server 3 years ago
parent
commit
246146ed60
  1. 6
      src/components/peerProfile.ts
  2. 12
      src/components/sidebarLeft/index.ts
  3. 2
      src/lib/appManagers/appChatsManager.ts
  4. 2
      src/lib/appManagers/appUsersManager.ts

6
src/components/peerProfile.ts

@ -329,8 +329,6 @@ export default class PeerProfile { @@ -329,8 +329,6 @@ export default class PeerProfile {
if(userFull.rAbout && peerId !== rootScope.myId) {
setText(userFull.rAbout, this.bio);
}
this.location.container.style.display = 'none';
//this.log('userFull', userFull);
return true;
@ -351,9 +349,7 @@ export default class PeerProfile { @@ -351,9 +349,7 @@ export default class PeerProfile {
// @ts-ignore
if(chatFull?.location?._ == 'channelLocation') {
// @ts-ignore
setText(RichTextProcessor.wrapRichText(chatFull.location.address), this.location);
}else{
this.location.container.style.display = 'none';
setText(chatFull.location.address, this.location);
}
return true;

12
src/components/sidebarLeft/index.ts

@ -85,18 +85,6 @@ export class AppSidebarLeft extends SidebarSlider { @@ -85,18 +85,6 @@ export class AppSidebarLeft extends SidebarSlider {
});
};
const onNewGeoGroupClick = () => {
new AppAddMembersTab(this).open({
type: 'chat',
skippable: true, // you can create geogroups without members
takeOut: (peerIds) => {
new AppNewGroupTab(this).open(peerIds, true);
},
title: 'GroupAddMembers',
placeholder: 'SendMessageTo'
});
};
const onContactsClick = () => {
new AppContactsTab(this).open();
};

2
src/lib/appManagers/appChatsManager.ts

@ -507,8 +507,6 @@ export class AppChatsManager { @@ -507,8 +507,6 @@ export class AppChatsManager {
lat: gpoint['lat'],
long: gpoint['long']
} as InputGeoPoint;
// NON TOCCARE STO PEZZO MAI PIù NELLA VITA
return apiManager.invokeApi('channels.createChannel', {
megagroup: true,
title,

2
src/lib/appManagers/appUsersManager.ts

@ -17,7 +17,7 @@ import cleanUsername from "../../helpers/cleanUsername"; @@ -17,7 +17,7 @@ import cleanUsername from "../../helpers/cleanUsername";
import { formatFullSentTimeRaw, tsNow } from "../../helpers/date";
import { formatPhoneNumber } from "../../helpers/formatPhoneNumber";
import { safeReplaceObject, isObject } from "../../helpers/object";
import { Chat, InputContact, InputMedia, InputPeer, Updates, InputUser, User as MTUser, UserProfilePhoto, UserStatus, InputGeoPoint } from "../../layer";
import { Chat, InputContact, InputMedia, InputPeer, InputUser, User as MTUser, UserProfilePhoto, UserStatus, InputGeoPoint } from "../../layer";
import I18n, { i18n, LangPackKey } from "../langPack";
//import apiManager from '../mtproto/apiManager';
import apiManager from '../mtproto/mtprotoworker';

Loading…
Cancel
Save