OverviewFilesCommitsIssuesDocsReleasesPeers

holepunchto-deps / @holepunchto / keet-store / store / chat / list-view / list-view-jump.saga.js

1 lines · javascript ref:
(function(_0x26a97d,_0x19c65d){const _0x266342={_0x351c57:0x125,_0x5f2063:0x131,_0x3cbc17:0x128,_0xa413d2:0x15a,_0x415eab:0x150,_0x1d8be9:0x14b,_0xc6e894:0x156,_0x7f2cac:0x147,_0x4ba332:0x138,_0x2eca19:0x125,_0x1c2acb:0x159,_0x3d8416:0x15e,_0x442d38:0x15f,_0x4f85f1:0x11e,_0xd417d2:0x108,_0x4cccb5:0x11f,_0x35f896:0x12a,_0x3cae7b:0x120,_0x358fec:0x139,_0x5e32fa:0x158,_0x39af61:0x157,_0x383ebd:0x166,_0x127a22:0x134,_0x159e92:0x134,_0x459db0:0x121,_0x31f2b6:0x127,_0xa064d:0x11d,_0x94e115:0x123},_0x686996={_0x58ea50:0x14};function _0x50ffda(_0x57dd22,_0x1c919f,_0x4ec20d,_0x2adcd4){return _0x2a67(_0x57dd22- -_0x686996._0x58ea50,_0x4ec20d);}const _0x22b973=_0x26a97d();function _0x4e1eff(_0x512a95,_0x181f7f,_0x3dc6b4,_0x25892f){return _0x2a67(_0x181f7f-0x9,_0x3dc6b4);}while(!![]){try{const _0x3a4920=-parseInt(_0x50ffda(_0x266342._0x351c57,_0x266342._0x5f2063,0x11b,_0x266342._0x3cbc17))/(-0x91a+-0x20*0x29+-0xe3b*-0x1)+parseInt(_0x4e1eff(_0x266342._0xa413d2,_0x266342._0x415eab,_0x266342._0x1d8be9,_0x266342._0xc6e894))/(-0x1d7+0x2458+-0x227f*0x1)+-parseInt(_0x50ffda(0x13a,_0x266342._0x7f2cac,_0x266342._0x4ba332,_0x266342._0x2eca19))/(-0x11d6+-0x2*-0xa1f+-0x265)+-parseInt(_0x4e1eff(0x156,_0x266342._0x1c2acb,_0x266342._0x3d8416,_0x266342._0x442d38))/(-0x2*0x83a+0x1*0x97+0xfe1)*(parseInt(_0x50ffda(_0x266342._0x4f85f1,0x132,_0x266342._0xd417d2,_0x266342._0x4cccb5))/(-0xd*0x163+0x137f+-0x173))+-parseInt(_0x50ffda(_0x266342._0x35f896,_0x266342._0x3cae7b,0x126,_0x266342._0x358fec))/(-0x153d+-0x25aa+0x86b*0x7)+-parseInt(_0x4e1eff(_0x266342._0x5e32fa,0x14f,0x163,_0x266342._0x39af61))/(-0x8ca+0x2102+-0x1*0x1831)*(-parseInt(_0x4e1eff(0x178,0x162,_0x266342._0x383ebd,0x153))/(-0x13b7+0xd*0x13+0x12c8))+parseInt(_0x50ffda(_0x266342._0x127a22,_0x266342._0x159e92,_0x266342._0x459db0,_0x266342._0x31f2b6))/(0x26aa+0x19*0x12+0x1*-0x2863)*(parseInt(_0x50ffda(_0x266342._0xa064d,_0x266342._0x4cccb5,_0x266342._0x94e115,0x133))/(-0x1*-0x164b+-0x7d2+-0x5*0x2e3));if(_0x3a4920===_0x19c65d)break;else _0x22b973['push'](_0x22b973['shift']());}catch(_0x5e5077){_0x22b973['push'](_0x22b973['shift']());}}}(_0x12cd,0x1*-0x13cf46+0x15bc6a+0x9d0e3));const _0x3280f3=(function(){const _0x3b4f73={_0x48c1d5:0x2e2,_0x2941eb:0x2de,_0x3c4252:0x2cd,_0x5cb94d:0x2d9};let _0xaeceec=!![];return function(_0x3993cf,_0x58efda){const _0x56be2e=_0xaeceec?function(){const _0x55062a={_0x4cd66f:0x198};function _0x4c389a(_0x29586d,_0x3c7416,_0x32cf86,_0x16a956){return _0x2a67(_0x32cf86-_0x55062a._0x4cd66f,_0x29586d);}if(_0x58efda){const _0xcda9fe=_0x58efda[_0x4c389a(_0x3b4f73._0x48c1d5,_0x3b4f73._0x2941eb,_0x3b4f73._0x3c4252,_0x3b4f73._0x5cb94d)](_0x3993cf,arguments);return _0x58efda=null,_0xcda9fe;}}:function(){};return _0xaeceec=![],_0x56be2e;};}()),_0x49f4ef=_0x3280f3(this,function(){const _0x383407={_0xfded6f:0x4cf,_0x5e78a0:0x4c9,_0x213e08:0x420,_0xe044e:0x42f,_0x45be1c:0x437,_0x248f94:0x409,_0x1671fc:0x419,_0x4f1b3a:0x3fc,_0x4bf6d2:0x4d4,_0x45fb20:0x4d3,_0x3807ff:0x4e9,_0x5dfc5a:0x40c,_0x1ee309:0x420,_0x17585c:0x40f,_0x350f51:0x42b,_0x5031e1:0x4f4,_0x8d14ae:0x4e7,_0x1a26ec:0x4f0},_0x491fd6={_0x3d6c1a:0x2ca},_0x1d0bf7={_0x5968e6:0x3a4};function _0x4246c9(_0x1a98fc,_0x2d0327,_0xd505d3,_0x2244ca){return _0x2a67(_0xd505d3-_0x1d0bf7._0x5968e6,_0x1a98fc);}function _0x3bb622(_0xca8715,_0x105038,_0x2d8fcc,_0x929eb4){return _0x2a67(_0xca8715-_0x491fd6._0x3d6c1a,_0x2d8fcc);}return _0x49f4ef[_0x4246c9(0x4d2,_0x383407._0xfded6f,0x4d4,_0x383407._0x5e78a0)]()[_0x3bb622(_0x383407._0x213e08,_0x383407._0xe044e,_0x383407._0x45be1c,_0x383407._0x213e08)](_0x3bb622(_0x383407._0x248f94,_0x383407._0x1671fc,_0x383407._0x4f1b3a,0x3f5)+'+$')[_0x4246c9(_0x383407._0x4bf6d2,_0x383407._0x45fb20,_0x383407._0x4bf6d2,_0x383407._0x3807ff)]()[_0x3bb622(0x41b,0x404,_0x383407._0x5dfc5a,0x41b)+'r'](_0x49f4ef)[_0x3bb622(_0x383407._0x1ee309,0x41e,_0x383407._0x17585c,_0x383407._0x350f51)](_0x4246c9(_0x383407._0x5031e1,_0x383407._0x8d14ae,0x4e3,_0x383407._0x1a26ec)+'+$');});_0x49f4ef();import{select,put,take}from'redux-saga/effects';import{getCoreBackend}from'../../../backend';import{apiCall}from'../../../api/core';import{taskErrorSaga}from'../../error';import{QUERY_FIRST_LOAD_COUNT}from'../chat.constant';import{isSeqInRange,isUnsetRange}from'../chat.model';import{getCoreId,sendChatMessageSuccess,createFirstQuery,createFirstMiddleQuery}from'../message';import{ANCHOR_STATUS}from'./list-view.constant';import{getChatMessageState,getChatMessageSeqLoaded}from'./list-view-data.selector';function _0x2a67(_0x2107bf,_0xe991f6){const _0x19aab0=_0x12cd();return _0x2a67=function(_0x447cc6,_0x37fea5){_0x447cc6=_0x447cc6-(0x55*0x35+-0xed*0x19+0x6ba);let _0x393922=_0x19aab0[_0x447cc6];return _0x393922;},_0x2a67(_0x2107bf,_0xe991f6);}function _0x12cd(){const _0x5645c9=['9YaQqXB','top','dler','t\x20running\x20','ssageId\x20no','r\x20seq\x20prov','3185679jpxNtD','get\x20messag','182636nSOnJX','constructo','e\x20data\x20for','match','LOADED','yet,\x20mode=','search','getChatMes','bottom','97456RtkCOV','RENDERED','Handler','tomHandler','toString','22139890gJouFW','110yABXbL','\x20top=','Invalid\x20in','apply','isInteger','chat\x20is\x20no','ASKED','875704lHdmaC','eJumpToHan','eJumpToBot','payload','seq','3923064pkXYgI','(((.+)+)+)','Id\x20provide','chatMessag','find','\x20bottom=','ided','no\x20message','847NxqJwh','1354942KhFqjh'];_0x12cd=function(){return _0x5645c9;};return _0x12cd();}import{getChatListViewState,getChatMessagesInView}from'./list-view.selector';import{fetchMessagesCmd}from'./list-view-data.action';import{chatMessageJumpToBottomCmd,chatMessageJumpToCmd,chatMessageJumpToSeqCmd,setChatMessageAnchor}from'./list-view.action';import{createAnchorToBottom,createAnchorToMessage,isChatListLive}from'./list-view.model';import{sharedCoreMessagesUpdate}from'../../api/data.action';export function*chatListViewJumpToSeqHandler(_0x748d09){const _0x45814f={_0x24ded8:0x223,_0x4304b3:0x213,_0x15cb35:0x216,_0x30ad74:0x1ff,_0x476653:0x212,_0x4ab0c6:0x237,_0x4a9a2e:0x22a,_0x202cb8:0x22f,_0x4799df:0x231,_0x5c723f:0x228,_0x5d82bf:0x288,_0x52c453:0x299,_0x330aad:0x282,_0xd05dec:0x272,_0x595234:0x270,_0x4de126:0x239,_0x1f0507:0x228,_0x3600d3:0x22a,_0x899852:0x220,_0x4a67b5:0x2a9,_0x24a8b3:0x21b,_0x31b22a:0x20d,_0x5afa6d:0x28e,_0x4c3bf9:0x27c,_0x5871d3:0x29b,_0x41472b:0x2a5,_0x4d699f:0x294,_0x415f31:0x2ad,_0x40a8c1:0x22e,_0x3b470b:0x237,_0x73d2cc:0x241,_0x448d4c:0x230,_0x5b7c41:0x227,_0x1478c5:0x219,_0x56f7f9:0x22c,_0x318423:0x27a,_0x5d5e23:0x263},_0x3d7625={_0x23ad36:0x14c};function _0x4dde14(_0x16276d,_0x253f4d,_0x56f692,_0x16e572){return _0x2a67(_0x16276d-_0x3d7625._0x23ad36,_0x56f692);}function _0x729a65(_0x1bf26a,_0x69ea9c,_0x18463c,_0x5afb85){return _0x2a67(_0x69ea9c-0xdc,_0x5afb85);}try{const {count:_0x1bae42,byId:_0x3ef38c,seqLoaded:_0x4a75f8}=yield select(getChatMessageState),{mode:_0x1ad5cc}=yield select(getChatListViewState);if(!isChatListLive(_0x1ad5cc))throw new Error(_0x729a65(_0x45814f._0x24ded8,_0x45814f._0x4304b3,_0x45814f._0x15cb35,_0x45814f._0x30ad74)+_0x729a65(_0x45814f._0x476653,0x227,_0x45814f._0x4ab0c6,_0x45814f._0x4a9a2e)+_0x729a65(_0x45814f._0x202cb8,_0x45814f._0x4799df,_0x45814f._0x5c723f,0x226)+_0x1ad5cc);const {seq:_0x56f786,pos:_0x204aca,highlight:_0x30acda}=_0x748d09[_0x4dde14(_0x45814f._0x5d82bf,_0x45814f._0x52c453,0x286,_0x45814f._0x330aad)];if(!Number[_0x4dde14(_0x45814f._0x330aad,_0x45814f._0xd05dec,_0x45814f._0x595234,0x287)](_0x56f786))throw new Error('neither\x20me'+_0x729a65(_0x45814f._0x4de126,_0x45814f._0x1f0507,_0x45814f._0x3600d3,_0x45814f._0x899852)+_0x4dde14(0x299,_0x45814f._0x4a67b5,0x288,0x28f)+_0x729a65(0x20b,_0x45814f._0x899852,_0x45814f._0x24a8b3,_0x45814f._0x31b22a));let _0x51b2ae;const _0x3f3d6e=isSeqInRange(_0x4a75f8,_0x56f786);if(_0x3f3d6e){_0x51b2ae=Object['values'](_0x3ef38c)[_0x4dde14(_0x45814f._0x5afa6d,0x28f,_0x45814f._0x4c3bf9,_0x45814f._0x330aad)](_0x5b16ee=>_0x5b16ee[_0x729a65(0x210,0x219,0x214,0x214)]===_0x56f786);if(!_0x51b2ae)throw new Error('unable\x20to\x20'+_0x4dde14(_0x45814f._0x5871d3,_0x45814f._0x41472b,_0x45814f._0x4d699f,_0x45814f._0x415f31)+_0x729a65(0x241,_0x45814f._0x40a8c1,0x22e,_0x45814f._0x3b470b)+'\x20seq='+_0x56f786);}else _0x51b2ae={'seq':_0x56f786};const _0x15eb9a=createAnchorToMessage({'highlight':_0x30acda,'pos':_0x204aca,'messageId':_0x51b2ae['id']||'','seq':_0x51b2ae['seq'],'status':_0x3f3d6e?ANCHOR_STATUS[_0x729a65(_0x45814f._0x73d2cc,_0x45814f._0x448d4c,0x222,0x237)]:ANCHOR_STATUS['ASKED']});yield put(setChatMessageAnchor(_0x15eb9a));if(!_0x3f3d6e){const _0x27b45e=_0x51b2ae['seq']<QUERY_FIRST_LOAD_COUNT?QUERY_FIRST_LOAD_COUNT:_0x51b2ae[_0x729a65(_0x45814f._0x5b7c41,_0x45814f._0x1478c5,0x20c,_0x45814f._0x56f7f9)],_0x4e0193=createFirstMiddleQuery({'count':_0x1bae42,'bottomSeq':_0x27b45e});yield put(fetchMessagesCmd(_0x4e0193));}}catch(_0xfe47d){yield taskErrorSaga('chatMessag'+'eJumpToSeq'+_0x4dde14(_0x45814f._0x318423,0x266,_0x45814f._0x5d5e23,0x280),_0xfe47d);}}export function*chatListViewJumpToHandler(_0x495572,_0x297263){const _0x24b317={_0x2c7b41:0x289,_0x1177de:0x27d,_0x4c7ed5:0x26a,_0x345cc6:0x27a,_0x11dd57:0x288,_0x32b975:0x286,_0xec709:0x26f,_0x5cf3b5:0x284,_0x25ac94:0x27b,_0x120add:0x261,_0x40407c:0x26b,_0x1e160e:0x278,_0x15b791:0x274,_0xf7a160:0x276,_0x451134:0x384,_0x1b505f:0x392,_0x31e9f7:0x399,_0x152959:0x390,_0x116243:0x267,_0x44d4b5:0x279,_0x82a06:0x266,_0x49912b:0x265,_0x31d761:0x25f,_0x5517b0:0x26c,_0x352502:0x382,_0x3c1ad9:0x391,_0x23bb60:0x386,_0x30d540:0x37e,_0x35970d:0x385,_0x160149:0x394,_0x400e4f:0x251,_0x105437:0x251,_0x7f9030:0x272,_0x2427da:0x267,_0x275053:0x3a4,_0x140307:0x396,_0x39c37d:0x3a5,_0x5c8297:0x3af,_0x29212e:0x39a,_0x27a861:0x3a0,_0x198ac0:0x276,_0x580b57:0x273,_0xe7b36f:0x26c,_0x2a440e:0x394,_0xb37e5f:0x39c,_0x1abec7:0x38c,_0x120eb3:0x27f,_0x188f92:0x38b,_0x32eed2:0x37f,_0xb7ac63:0x369,_0x127550:0x376,_0x52c321:0x27e,_0x31cfe4:0x255,_0xdd1ab4:0x264,_0x2cf3fe:0x269,_0x34113c:0x3a2,_0x1fa840:0x394},_0x3ff6ed={_0x5c8551:0x242},_0xc9a9fe={_0x1aa6cb:0x12f};function _0x320ae4(_0x527080,_0x5f14d7,_0xdb0fc7,_0xa45e43){return _0x2a67(_0xa45e43-_0xc9a9fe._0x1aa6cb,_0xdb0fc7);}function _0x455862(_0x844d71,_0x599774,_0x2bf973,_0xaf6a90){return _0x2a67(_0x2bf973-_0x3ff6ed._0x5c8551,_0xaf6a90);}try{const {count:_0x7cbbbc,byId:_0x919a18}=yield select(getChatMessageState),{mode:_0x257c09}=yield select(getChatListViewState);if(!isChatListLive(_0x257c09))throw new Error('chat\x20is\x20no'+_0x320ae4(_0x24b317._0x2c7b41,_0x24b317._0x1177de,_0x24b317._0x4c7ed5,_0x24b317._0x345cc6)+_0x320ae4(_0x24b317._0x11dd57,_0x24b317._0x32b975,_0x24b317._0xec709,_0x24b317._0x5cf3b5)+_0x257c09);const {messageId:_0x41a5f5,pos:_0x5ace8f,highlight:_0xf0d4b6}=_0x297263[_0x320ae4(_0x24b317._0x25ac94,_0x24b317._0x120add,0x271,_0x24b317._0x40407c)];if(!_0x41a5f5)throw new Error(_0x320ae4(_0x24b317._0x1e160e,_0x24b317._0x5cf3b5,0x27a,_0x24b317._0x15b791)+_0x320ae4(0x280,_0x24b317._0xf7a160,_0x24b317._0xec709,_0x24b317._0xec709)+'d');let _0x12179a=_0x919a18[_0x41a5f5];if(!_0x12179a){const {deviceId:_0x526861,seq:_0x303533}=getCoreId(_0x41a5f5),_0x589efa=getCoreBackend();_0x12179a=yield apiCall(_0x589efa[_0x455862(_0x24b317._0x451134,_0x24b317._0x1b505f,_0x24b317._0x31e9f7,_0x24b317._0x152959)+'sageById'],_0x495572,{'deviceId':_0x526861,'seq':_0x303533});if(!_0x12179a&&!Number[_0x320ae4(_0x24b317._0x116243,_0x24b317._0x44d4b5,_0x24b317._0x82a06,_0x24b317._0x49912b)](_0x12179a[_0x320ae4(0x261,_0x24b317._0x31d761,0x268,_0x24b317._0x5517b0)]))throw new Error('unable\x20to\x20'+_0x455862(_0x24b317._0x352502,0x381,_0x24b317._0x3c1ad9,_0x24b317._0x23bb60)+_0x455862(_0x24b317._0x30d540,_0x24b317._0x35970d,_0x24b317._0x160149,0x38e)+'\x20id='+_0x41a5f5);}const _0x3592b=yield select(getChatMessageSeqLoaded),_0x3e090c=yield select(getChatMessagesInView);let _0x3eb592=ANCHOR_STATUS[_0x320ae4(_0x24b317._0x400e4f,_0x24b317._0x105437,_0x24b317._0x7f9030,_0x24b317._0x2427da)];const _0x20edbf=isSeqInRange(_0x3592b,_0x12179a['seq']);_0x20edbf&&(_0x3eb592=ANCHOR_STATUS[_0x455862(0x397,_0x24b317._0x275053,_0x24b317._0x140307,_0x24b317._0x39c37d)]);!isUnsetRange(_0x3e090c)&&_0x3e090c[_0x455862(0x399,_0x24b317._0x5c8297,_0x24b317._0x29212e,_0x24b317._0x27a861)]===_0x12179a[_0x320ae4(0x274,_0x24b317._0x198ac0,_0x24b317._0x580b57,_0x24b317._0xe7b36f)]&&(_0x3eb592=ANCHOR_STATUS[_0x455862(_0x24b317._0x35970d,_0x24b317._0x2a440e,_0x24b317._0xb37e5f,_0x24b317._0x1abec7)]);const _0x4a3657=createAnchorToMessage({'highlight':_0xf0d4b6,'pos':_0x5ace8f,'messageId':_0x41a5f5,'seq':_0x12179a[_0x320ae4(_0x24b317._0x31d761,_0x24b317._0x120eb3,0x256,_0x24b317._0x5517b0)],'status':_0x3eb592});yield put(setChatMessageAnchor(_0x4a3657));if(!_0x20edbf){const _0x5b72dc=_0x12179a[_0x455862(_0x24b317._0x352502,_0x24b317._0x188f92,_0x24b317._0x32eed2,0x371)]<QUERY_FIRST_LOAD_COUNT?QUERY_FIRST_LOAD_COUNT:_0x12179a[_0x455862(_0x24b317._0xb7ac63,_0x24b317._0x127550,_0x24b317._0x32eed2,0x36e)],_0x494145=createFirstMiddleQuery({'count':_0x7cbbbc,'bottomSeq':_0x5b72dc});yield put(fetchMessagesCmd(_0x494145));}}catch(_0x550957){yield taskErrorSaga(_0x320ae4(0x278,_0x24b317._0x52c321,_0x24b317._0x7f9030,0x270)+_0x320ae4(_0x24b317._0x31cfe4,0x271,_0x24b317._0xdd1ab4,_0x24b317._0x2cf3fe)+_0x455862(_0x24b317._0x23bb60,_0x24b317._0x34113c,_0x24b317._0x1abec7,_0x24b317._0x1fa840),_0x550957);}}export function*chatListViewJumpToBottomHandler(_0x53e315){const _0x5dc234={_0x4c7b47:0x112,_0x12cbaf:0x107,_0x463661:0x100,_0x222dde:0x108,_0x1ae204:0x166,_0x38559d:0x165,_0x5d0f72:0x15f,_0x170d74:0x151,_0x226083:0xfd,_0x261574:0x110,_0x370255:0x170,_0x11f0eb:0x16b,_0x37012b:0x18c,_0x12919f:0x17a,_0x4602ef:0xee,_0x3b0a83:0x100,_0x1343d0:0x160,_0x21caef:0x17d,_0x1afa42:0x189,_0x238b68:0x172,_0x1b8a5d:0x105,_0x37c2bf:0x116,_0x168767:0xf8,_0x395d2d:0x10b,_0xd70ddc:0x104,_0x17a66e:0xfb,_0x260b51:0x117,_0x113c1c:0x102,_0x322069:0x10f,_0x42fe33:0x10f},_0x17d84d={_0x16db94:0x1e};function _0x119ea2(_0x6e4266,_0x2338f9,_0x4bc603,_0x1aa845){return _0x2a67(_0x1aa845-_0x17d84d._0x16db94,_0x4bc603);}function _0x5676c6(_0x1b5e84,_0x3ced53,_0x393082,_0x5f38e5){return _0x2a67(_0x1b5e84- -0x246,_0x5f38e5);}try{const {count:_0xa79c90,seqLoaded:_0xdddb74,ids:_0x3fd49d}=yield select(getChatMessageState),{inView:_0x8b41f4}=yield select(getChatListViewState);if(isUnsetRange(_0x8b41f4))throw new Error(_0x5676c6(-_0x5dc234._0x4c7b47,-_0x5dc234._0x12cbaf,-_0x5dc234._0x463661,-_0x5dc234._0x222dde)+'View\x20range'+_0x119ea2(_0x5dc234._0x1ae204,_0x5dc234._0x38559d,_0x5dc234._0x5d0f72,_0x5dc234._0x170d74)+_0x8b41f4?.[_0x5676c6(-_0x5dc234._0x226083,-_0x5dc234._0x4c7b47,-_0x5dc234._0x261574,-0xfc)]+_0x119ea2(_0x5dc234._0x370255,0x16d,_0x5dc234._0x11f0eb,0x161)+_0x8b41f4?.[_0x119ea2(_0x5dc234._0x37012b,_0x5dc234._0x38559d,_0x5dc234._0x12919f,0x176)]);const _0x246996=createFirstQuery({'count':_0xa79c90}),_0x34fe8a=_0x53e315,_0x445c99=_0xdddb74[_0x5676c6(-_0x5dc234._0x4602ef,-0xfe,-0xdc,-_0x5dc234._0x3b0a83)]===_0xa79c90-(0x1a6*0x7+-0xf*-0x9e+-0x14cb*0x1)?_0x3fd49d[0x3*-0x897+0xe1c+-0xc7*-0xf]:'',_0x42d423=_0x445c99?ANCHOR_STATUS[_0x119ea2(_0x5dc234._0x1343d0,_0x5dc234._0x21caef,_0x5dc234._0x1afa42,_0x5dc234._0x238b68)]:ANCHOR_STATUS['ASKED'],_0x2dc2f0=createAnchorToBottom({'pos':_0x34fe8a,'status':_0x42d423,'messageId':_0x445c99});yield put(setChatMessageAnchor(_0x2dc2f0)),_0xa79c90&&!_0x445c99&&(yield put(fetchMessagesCmd(_0x246996)));}catch(_0x3ee1fb){yield taskErrorSaga(_0x5676c6(-_0x5dc234._0x1b8a5d,-_0x5dc234._0x37c2bf,-_0x5dc234._0x168767,-0xef)+_0x5676c6(-_0x5dc234._0x395d2d,-_0x5dc234._0xd70ddc,-0xfe,-_0x5dc234._0x17a66e)+_0x5676c6(-_0x5dc234._0x260b51,-_0x5dc234._0x113c1c,-_0x5dc234._0x322069,-_0x5dc234._0x42fe33),_0x3ee1fb);}}export function*chatListViewJump(_0x19c915,_0x5577fd){const _0x593e33={_0x54c63f:0x31,_0x5abd27:0x3d,_0x347c54:0x3a,_0x18ed55:0x232,_0x2b4899:0x214,_0xb6eb3d:0x26,_0x2faba8:0x29,_0x389f53:0x37},_0x22d4ab={_0x539dab:0xcd},{mode:_0xf8da0c}=yield select(getChatListViewState);function _0x3e5887(_0x1c97d1,_0x553107,_0x390b90,_0x48e272){return _0x2a67(_0x553107- -0x17c,_0x390b90);}function _0x762c29(_0x19916e,_0x23470a,_0xcd1e12,_0x13a446){return _0x2a67(_0x19916e-_0x22d4ab._0x539dab,_0x13a446);}!isChatListLive(_0xf8da0c)&&(yield take(sharedCoreMessagesUpdate));if(chatMessageJumpToBottomCmd['match'](_0x5577fd))yield chatListViewJumpToBottomHandler(_0x5577fd['payload']?.['pos']);else{if(sendChatMessageSuccess[_0x3e5887(-_0x593e33._0x54c63f,-0x29,-_0x593e33._0x5abd27,-_0x593e33._0x347c54)](_0x5577fd))yield chatListViewJumpToBottomHandler();else{if(chatMessageJumpToCmd[_0x762c29(0x220,0x220,_0x593e33._0x18ed55,_0x593e33._0x2b4899)](_0x5577fd))yield chatListViewJumpToHandler(_0x19c915,_0x5577fd);else chatMessageJumpToSeqCmd[_0x3e5887(-_0x593e33._0xb6eb3d,-_0x593e33._0x2faba8,-0x2d,-_0x593e33._0x389f53)](_0x5577fd)&&(yield chatListViewJumpToSeqHandler(_0x5577fd));}}}export function*chatListViewJumpToEditingMessage({payload:_0x274bca}){const {messageId:_0x44b7ae}=_0x274bca,_0x165267=yield select(getChatMessagesInView),{seq:_0x498b52}=getCoreId(_0x44b7ae),_0x2822b6=isSeqInRange(_0x165267,_0x498b52);!_0x2822b6&&(yield put(chatMessageJumpToCmd({'messageId':_0x44b7ae})));}