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

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

12
src/components/sidebarLeft/index.ts

@ -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 = () => { const onContactsClick = () => {
new AppContactsTab(this).open(); new AppContactsTab(this).open();
}; };

2
src/lib/appManagers/appChatsManager.ts

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

2
src/lib/appManagers/appUsersManager.ts

@ -17,7 +17,7 @@ import cleanUsername from "../../helpers/cleanUsername";
import { formatFullSentTimeRaw, tsNow } from "../../helpers/date"; import { formatFullSentTimeRaw, tsNow } from "../../helpers/date";
import { formatPhoneNumber } from "../../helpers/formatPhoneNumber"; import { formatPhoneNumber } from "../../helpers/formatPhoneNumber";
import { safeReplaceObject, isObject } from "../../helpers/object"; 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 I18n, { i18n, LangPackKey } from "../langPack";
//import apiManager from '../mtproto/apiManager'; //import apiManager from '../mtproto/apiManager';
import apiManager from '../mtproto/mtprotoworker'; import apiManager from '../mtproto/mtprotoworker';

Loading…
Cancel
Save