telegram-tt/dist/25.8ea9a7a9791a531e0216.js

2 lines
220 KiB
JavaScript
Raw Normal View History

2021-08-21 12:34:34 +02:00
"use strict";(self.webpackChunktelegram_t=self.webpackChunktelegram_t||[]).push([[25],{8025:(e,t,s)=>{s.r(t),s.d(t,{Main:()=>ao});var a=s(5116),n=s(3716),o=s(4050),r=(s(7895),s(1752)),i=s(8085),c=s(735),d=s(2858);function l(e){const{chatId:t,threadId:s}=(0,i.Bt)(e)||{};return t&&s?(e=(0,r.qr)(e,t,s,!1),e=(0,r.Pb)(e,t,s,void 0)):e}(0,a.Q6)("openLocalTextSearch",(e=>{const{chatId:t,threadId:s}=(0,i.Bt)(e)||{};if(t&&s)return(0,r.qr)(e,t,s,!0)})),(0,a.Q6)("closeLocalTextSearch",l),(0,a.Q6)("setLocalTextSearchQuery",((e,t,s)=>{const{chatId:a,threadId:n}=(0,i.Bt)(e)||{};if(!a||!n)return;const{query:o}=s,l=(0,d.uw)(a,n),{query:u}=e.localTextSearch.byChatThreadKey[l]||{};return o!==u&&(e=(0,r.Pb)(e,a,n,c.D)),(0,r.qr)(e,a,n,!0,o)})),(0,a.Q6)("setLocalMediaSearchType",((e,t,s)=>{const{chatId:a}=(0,i.Bt)(e)||{};if(!a)return;const{mediaType:n}=s;return(0,r.z5)(e,a,n)})),(0,a.Q6)("openChat",((e,t,s)=>{const{id:n,threadId:o=-1,type:c="thread",shouldReplaceHistory:d=!1}=s,u=(0,i.Bt)(e);return u&&u.chatId===n&&u.threadId===o&&u.type===c||(e=(0,r.pf)(e,n,o,"replyStack",[]),e=l(e=(0,r.i9)(e)),e={...e,messages:{...e.messages,contentToBeScheduled:void 0},...n!==e.forwardMessages.toChatId&&{forwardMessages:{}}},(0,a.R3)(e)),(0,r.Wy)(e,n,o,c,d)})),(0,a.Q6)("openPreviousChat",(e=>(0,r.Wy)(e,void 0))),(0,a.Q6)("openChatWithInfo",((e,t,s)=>{(0,a.R3)({...e,isChatInfoShown:!0}),t.openChat(s)})),(0,a.Q6)("resetChatCreation",(e=>({...e,chatCreation:void 0}))),(0,a.Q6)("setNewChatMembersDialogState",((e,t,s)=>({...e,newChatMembersProgress:s}))),(0,a.Q6)("openNextChat",((e,t,s)=>{const{targetIndexDelta:a,orderedIds:n}=s,{chatId:o}=(0,i.Bt)(e)||{};if(!o)return void t.openChat({id:n[0]});const r=n.indexOf(o);if(-1===r)return;const c=n[r+a];t.openChat({id:c,shouldReplaceHistory:!0})}));var u=s(6137),h=s(1713),m=s(7361),g=s(782);const f=n.ck+n.fK;let p;(0,a.Q6)("setScrollOffset",((e,t,s)=>{const{chatId:a,threadId:n,scrollOffset:o}=s;return(0,r.pf)(e,a,n,"scrollOffset",o)})),(0,a.Q6)("setReplyingToId",((e,t,s)=>{const{messageId:a}=s,n=(0,i.Bt)(e);if(!n)return;const{chatId:o,threadId:c}=n;return(0,r.pf)(e,o,c,"replyingToId",a)})),(0,a.Q6)("setEditingId",((e,t,s)=>{const{messageId:a}=s,n=(0,i.Bt)(e);if(!n)return;const{chatId:o,threadId:c,type:d}=n,l="scheduled"===d?"editingScheduledId":"editingId";return(0,r.pf)(e,o,c,l,a)})),(0,a.Q6)("editLastMessage",(e=>{const{chatId:t,threadId:s}=(0,i.Bt)(e)||{};if(!t||!s)return;const a=(0,i.Zw)(e,t),n=(0,i.Cb)(e,t,s);if(!a||!n)return;const o=(0,g.dF)(n,(t=>Boolean(a[t]&&(0,i._k)(e,a[t],s).canEdit)));return o?(0,r.pf)(e,t,s,"editingId",o):void 0})),(0,a.Q6)("replyToNextMessage",((e,t,s)=>{const{targetIndexDelta:a}=s,{chatId:n,threadId:o}=(0,i.Bt)(e)||{};if(!n||!o)return;const r=(0,i.Zw)(e,n),c=(0,i.Cb)(e,n,o);if(!r||!c)return;const d=(0,i.Yy)(e,n,o);let l;if((0,i.b9)(e,n,o)&&d){const e=Object.keys(r),t=e.indexOf(d.toString())+a;l=t<=e.length+1&&t>=0?Number(e[t]):void 0}else if(o===u._f){const t=(0,i.Z1)(e,n);l=t&&t.lastMessage?t.lastMessage.id:void 0}else{const t=(0,i.tZ)(e,n,o);l=t?t.lastMessageId:void 0}t.setReplyingToId({messageId:l}),t.focusMessage({chatId:n,threadId:o,messageId:l})})),(0,a.Q6)("openMediaViewer",((e,t,s)=>{const{chatId:a,threadId:n,messageId:o,avatarOwnerId:r,profilePhotoIndex:i,origin:c}=s;return{...e,mediaViewer:{chatId:a,threadId:n,messageId:o,avatarOwnerId:r,profilePhotoIndex:i,origin:c},forwardMessages:{}}})),(0,a.Q6)("closeMediaViewer",(e=>({...e,mediaViewer:{}}))),(0,a.Q6)("openAudioPlayer",((e,t,s)=>{const{chatId:a,threadId:n,messageId:o}=s;return{...e,audioPlayer:{chatId:a,threadId:n,messageId:o}}})),(0,a.Q6)("closeAudioPlayer",(e=>({...e,audioPlayer:{}}))),(0,a.Q6)("openPollResults",((e,t,s)=>{const{chatId:n,messageId:o}=s;(0,i.Jf)(e)?n===e.pollResults.chatId&&o===e.pollResults.messageId||(0,a.R3)({...e,pollResults:{chatId:n,messageId:o,voters:{}}}):window.setTimeout((()=>{const e=(0,a.Rd)();(0,a.R3)({...e,pollResults:{chatId:n,messageId:o,voters:{}}})}),450)})),(0,a.Q6)("closePollResults",(e=>{(0,a.R3)({...e,pollResults:{}})})),(0,a.Q6)("focusLastMessage",((e,t)=>{const s=(0,i.Bt)(e);if(!
//# sourceMappingURL=25.8ea9a7a9791a531e0216.js.map