From 246146ed6054458402e5358cf4d72a53a8b5443b Mon Sep 17 00:00:00 2001 From: Global Server Date: Mon, 3 Jan 2022 12:18:15 +0100 Subject: [PATCH] Fixes --- src/components/peerProfile.ts | 6 +----- src/components/sidebarLeft/index.ts | 12 ------------ src/lib/appManagers/appChatsManager.ts | 2 -- src/lib/appManagers/appUsersManager.ts | 2 +- 4 files changed, 2 insertions(+), 20 deletions(-) diff --git a/src/components/peerProfile.ts b/src/components/peerProfile.ts index cc9d0619..1ed555ae 100644 --- a/src/components/peerProfile.ts +++ b/src/components/peerProfile.ts @@ -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 { // @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; diff --git a/src/components/sidebarLeft/index.ts b/src/components/sidebarLeft/index.ts index 3a04a723..50328b16 100644 --- a/src/components/sidebarLeft/index.ts +++ b/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 = () => { new AppContactsTab(this).open(); }; diff --git a/src/lib/appManagers/appChatsManager.ts b/src/lib/appManagers/appChatsManager.ts index 307e5030..913ffb02 100644 --- a/src/lib/appManagers/appChatsManager.ts +++ b/src/lib/appManagers/appChatsManager.ts @@ -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, diff --git a/src/lib/appManagers/appUsersManager.ts b/src/lib/appManagers/appUsersManager.ts index 361b7890..9925db46 100644 --- a/src/lib/appManagers/appUsersManager.ts +++ b/src/lib/appManagers/appUsersManager.ts @@ -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';