telegram-tt/dist/4.c38a7392f9296792ca0b.js

2 lines
204 KiB
JavaScript
Raw Normal View History

2021-05-31 16:24:07 +02:00
(window.webpackJsonp=window.webpackJsonp||[]).push([[4],{191:function(e,t,a){},192:function(e,t,a){},193:function(e,t,a){},204:function(e,t,a){},205:function(e,t,a){},206:function(e,t,a){},209:function(e,t,a){},210:function(e,t,a){},211:function(e,t,a){},215:function(e,t,a){},216:function(e,t,a){},218:function(e,t,a){},221:function(e,t,a){},222:function(e,t,a){},223:function(e,t,a){},224:function(e,t,a){},225:function(e,t,a){},226:function(e,t,a){},227:function(e,t,a){},228:function(e,t,a){},229:function(e,t,a){},230:function(e,t,a){},231:function(e,t,a){},233:function(e,t,a){},234:function(e,t,a){},235:function(e,t,a){},236:function(e,t,a){},237:function(e,t,a){},238:function(e,t,a){},239:function(e,t,a){},243:function(e,t,a){},244:function(e,t,a){},245:function(e,t,a){},96:function(e,t,a){"use strict";a.r(t),a.d(t,"Main",(function(){return Sc}));var s=a(2),c=a(1),n=a(0),r=(a(77),a(34)),o=a(6);window.addEventListener("popstate",e=>{if(!e.state)return;const{chatId:t,threadId:a,messageListType:c}=e.state;Object(s.d)().openChat({id:t,threadId:a,type:c,noPushState:!0})}),Object(s.b)("openChat",(e,t,a)=>{const{id:c,threadId:n=-1,type:i="thread",noPushState:l}=a,d=Object(o.y)(e);return d&&d.chatId===c&&d.threadId===n&&d.type===i||(e=Object(r.n)(e),e={...e,messages:{...e.messages,contentToBeScheduled:void 0},...c!==e.forwardMessages.toChatId&&{forwardMessages:{}}},Object(s.g)(e),l||window.history.pushState({chatId:c,threadId:n,messageListType:i},"")),Object(r.M)(e,c,n,i)}),Object(s.b)("openChatWithInfo",(e,t,a)=>{Object(s.g)({...e,isChatInfoShown:!0}),t.openChat(a)}),Object(s.b)("resetChatCreation",e=>({...e,chatCreation:void 0}));var i=a(5),l=a(19),d=a(3);let b;Object(s.b)("setScrollOffset",(e,t,a)=>{const{chatId:s,threadId:c,scrollOffset:n}=a;return Object(r.w)(e,s,c,"scrollOffset",n)}),Object(s.b)("setReplyingToId",(e,t,a)=>{const{messageId:s}=a,c=Object(o.y)(e);if(!c)return;const{chatId:n,threadId:i}=c;return Object(r.w)(e,n,i,"replyingToId",s)}),Object(s.b)("setEditingId",(e,t,a)=>{const{messageId:s}=a,c=Object(o.y)(e);if(!c)return;const{chatId:n,threadId:i,type:l}=c,d="scheduled"===l?"editingScheduledId":"editingId";return Object(r.w)(e,n,i,d,s)}),Object(s.b)("editLastMessage",e=>{const{chatId:t,threadId:a}=Object(o.y)(e)||{};if(!t||!a)return;const s=Object(o.m)(e,t),c=Object(o.Gb)(e,t,a);if(!s||!c)return;const n=Object(d.g)(c,t=>Boolean(s[t]&&Object(o.b)(e,s[t],a).canEdit));return n?Object(r.w)(e,t,a,"editingId",n):void 0}),Object(s.b)("openMediaViewer",(e,t,a)=>{const{chatId:s,threadId:c,messageId:n,avatarOwnerId:r,profilePhotoIndex:o,origin:i}=a;return{...e,mediaViewer:{chatId:s,threadId:c,messageId:n,avatarOwnerId:r,profilePhotoIndex:o,origin:i},forwardMessages:{}}}),Object(s.b)("closeMediaViewer",e=>({...e,mediaViewer:{}})),Object(s.b)("openAudioPlayer",(e,t,a)=>{const{chatId:s,threadId:c,messageId:n}=a;return{...e,audioPlayer:{chatId:s,threadId:c,messageId:n}}}),Object(s.b)("closeAudioPlayer",e=>({...e,audioPlayer:{}})),Object(s.b)("openPollResults",(e,t,a)=>{const{chatId:c,messageId:n}=a;Object(o.V)(e)?c===e.pollResults.chatId&&n===e.pollResults.messageId||Object(s.g)({...e,pollResults:{chatId:c,messageId:n,voters:{}}}):window.setTimeout(()=>{const e=Object(s.e)();Object(s.g)({...e,pollResults:{chatId:c,messageId:n,voters:{}}})},450)}),Object(s.b)("closePollResults",e=>{Object(s.g)({...e,pollResults:{}})}),Object(s.b)("focusLastMessage",(e,t)=>{const a=Object(o.y)(e);if(!a)return;const{chatId:s,threadId:c}=a;let n;if(c===i.MAIN_THREAD_ID){const t=Object(o.f)(e,s);n=t&&t.lastMessage?t.lastMessage.id:void 0}else{const t=Object(o.Bb)(e,s,c);n=t?t.lastMessageId:void 0}n&&t.focusMessage({chatId:s,threadId:c,messageId:n,noHighlight:!0})}),Object(s.b)("focusMessage",(e,t,a)=>{const{chatId:c,threadId:n=i.MAIN_THREAD_ID,messageListType:d="thread",noHighlight:u,groupedId:m,groupedChatId:h}=a;let{messageId:O}=a;if(void 0!==m){const t=Object(o.I)(e,h,m);t&&t.length&&([O]=t)}const j=Object(o.y)(e),g=!j||c!==j.chatId||n!==j.threadId||d!==j.type;b&&(clearTimeout(b),b=void 0),b=window.setTimeout(()=>{let e=Object(s.e)();e=Object
//# sourceMappingURL=4.c38a7392f9296792ca0b.js.map