ca1213c32f
Fix chat date blinking Fix displaying sent messages to new dialog Scroll to date bubble if message is bigger than viewport Fix releasing keyboard by inline helper Fix clearing self user Fix displaying sent public poll Update contacts counter in dialogs placeholder Improve multiselect animation Disable lottie icon animations if they're disabled Fix changing mtproto transport during authorization
28 lines
1006 B
TypeScript
28 lines
1006 B
TypeScript
/*
|
|
* https://github.com/morethanwords/tweb
|
|
* Copyright (C) 2019-2021 Eduard Kuzmenko
|
|
* https://github.com/morethanwords/tweb/blob/master/LICENSE
|
|
*/
|
|
|
|
import { SliderSuperTabEventable } from "../../../sliderTab";
|
|
import PrivacySection from "../../../privacySection";
|
|
import { LangPackKey } from "../../../../lib/langPack";
|
|
|
|
export default class AppPrivacyLastSeenTab extends SliderSuperTabEventable {
|
|
protected init() {
|
|
this.header.classList.add('with-border');
|
|
this.container.classList.add('privacy-tab', 'privacy-last-seen');
|
|
this.setTitle('PrivacyLastSeen');
|
|
|
|
const caption: LangPackKey = 'PrivacySettingsController.LastSeenDescription';
|
|
new PrivacySection({
|
|
tab: this,
|
|
title: 'LastSeenTitle',
|
|
inputKey: 'inputPrivacyKeyStatusTimestamp',
|
|
captions: [caption, caption, caption],
|
|
exceptionTexts: ['PrivacySettingsController.NeverShare', 'PrivacySettingsController.AlwaysShare'],
|
|
appendTo: this.scrollable
|
|
});
|
|
}
|
|
}
|