(function(_0x20dbca,_0x2c0a15){const _0x46b8ad={_0x5dcdf4:0x141,_0x29d173:0x152,_0x425cba:0x136,_0x10e72d:0x1de,_0x3b8823:0x1d2,_0x38a2a5:0x1c8,_0x39eb31:0x141,_0x41d39b:0x139,_0x37c74f:0x126,_0x1b1a8d:0x1b1,_0x557bbf:0x1b2,_0x37378a:0x1ce,_0xb14d77:0x1ef,_0x2b477c:0x1db,_0x51f5ca:0x151,_0x369f80:0x15b,_0x4c7f93:0x14a,_0x38404a:0x161,_0x43ca06:0x135,_0x527296:0x14c,_0x4e395a:0x146,_0x174ecb:0x14c,_0x175df4:0x153,_0x423cc1:0x159,_0x99b927:0x13c,_0x1a717c:0x1c0,_0x2c6ddb:0x1d3,_0x276675:0x149,_0x3fad27:0x150,_0x52abf9:0x141,_0x13ae4d:0x1cc,_0x26874b:0x1be,_0x223cc0:0x1c3,_0x2c5a44:0x1c5},_0x2b63c2={_0x30cb98:0x4a};function _0x2631f3(_0x1d3c0d,_0x4c2b8a,_0x5b114e,_0x5d836d){return _0x1c86(_0x1d3c0d- -0x2bd,_0x5d836d);}const _0x53b864=_0x20dbca();function _0x4e1dc6(_0x502843,_0xae19dc,_0x210bb4,_0xe29df2){return _0x1c86(_0xe29df2-_0x2b63c2._0x30cb98,_0x210bb4);}while(!![]){try{const _0x3e6ceb=parseInt(_0x2631f3(-_0x46b8ad._0x5dcdf4,-_0x46b8ad._0x29d173,-0x148,-_0x46b8ad._0x425cba))/(-0xb*-0x22a+0x325*-0x5+-0x814)+parseInt(_0x4e1dc6(_0x46b8ad._0x10e72d,0x1cd,_0x46b8ad._0x3b8823,_0x46b8ad._0x38a2a5))/(0x8bb+0x12+-0x8cb)*(-parseInt(_0x2631f3(-_0x46b8ad._0x425cba,-_0x46b8ad._0x39eb31,-_0x46b8ad._0x41d39b,-_0x46b8ad._0x37c74f))/(0x4*0x829+-0x2be*0x8+-0xab1*0x1))+-parseInt(_0x4e1dc6(_0x46b8ad._0x1b1a8d,_0x46b8ad._0x557bbf,0x1bb,0x1bd))/(-0x2*0x43f+-0x7f+0x901)+-parseInt(_0x4e1dc6(_0x46b8ad._0x37378a,0x1c4,_0x46b8ad._0xb14d77,_0x46b8ad._0x2b477c))/(0x10af*0x1+0x1be*0x10+0x2*-0x1645)*(-parseInt(_0x2631f3(-_0x46b8ad._0x51f5ca,-_0x46b8ad._0x369f80,-_0x46b8ad._0x4c7f93,-_0x46b8ad._0x38404a))/(-0x22d+0xcbb+-0xa88))+-parseInt(_0x2631f3(-_0x46b8ad._0x43ca06,-_0x46b8ad._0x527296,-0x147,-_0x46b8ad._0x4e395a))/(-0x572*-0x2+0x1*0x266+-0xd43)*(-parseInt(_0x2631f3(-_0x46b8ad._0x174ecb,-_0x46b8ad._0x175df4,-_0x46b8ad._0x423cc1,-_0x46b8ad._0x99b927))/(-0x1944+-0xbfb+0x2547))+parseInt(_0x4e1dc6(0x1cb,_0x46b8ad._0x1a717c,0x1c1,_0x46b8ad._0x2c6ddb))/(-0x1*0x2291+-0x7bb*-0x3+0x7f*0x17)+parseInt(_0x2631f3(-_0x46b8ad._0x276675,-_0x46b8ad._0x3fad27,-0x156,-_0x46b8ad._0x52abf9))/(-0x77*0xe+0xb9*0x5+-0x2ef*-0x1)*(-parseInt(_0x4e1dc6(_0x46b8ad._0x13ae4d,_0x46b8ad._0x26874b,_0x46b8ad._0x223cc0,_0x46b8ad._0x2c5a44))/(-0x230f+0x721*0x1+-0x4d*-0x5d));if(_0x3e6ceb===_0x2c0a15)break;else _0x53b864['push'](_0x53b864['shift']());}catch(_0x32728c){_0x53b864['push'](_0x53b864['shift']());}}}(_0x2bc0,0xdf*-0xae7+-0x2a795+0x1*0x12db0d));const _0x3dc3e6=(function(){const _0x2b1c6e={_0x29dc8a:0x222,_0x50b0e3:0x220,_0x1f7ae9:0x242};let _0x59a60e=!![];return function(_0x480e98,_0x483a7f){const _0x3904ba={_0x2ff762:0x3a6},_0x46bbf4=_0x59a60e?function(){function _0x507b5e(_0x5471cf,_0x3aff0b,_0x1567d1,_0x2f7c84){return _0x1c86(_0x3aff0b- -_0x3904ba._0x2ff762,_0x1567d1);}if(_0x483a7f){const _0x227394=_0x483a7f[_0x507b5e(-_0x2b1c6e._0x29dc8a,-0x238,-_0x2b1c6e._0x50b0e3,-_0x2b1c6e._0x1f7ae9)](_0x480e98,arguments);return _0x483a7f=null,_0x227394;}}:function(){};return _0x59a60e=![],_0x46bbf4;};}()),_0x20b314=_0x3dc3e6(this,function(){const _0x3a70ce={_0x1ae1ae:0x2f0,_0x35400f:0x30c,_0x5add3c:0x301,_0x59e5de:0xd,_0x130d96:0x4,_0x4b1ec4:0x5,_0x3f6520:0x12,_0x1648e7:0x23,_0xc30348:0x16,_0x143de7:0x17,_0xfe82c3:0x301,_0x2cd04e:0x2e3,_0x2ed380:0x2f8,_0x3f2dbd:0x15,_0x4f8498:0x6,_0xb88b43:0x10,_0xaff228:0x314,_0x1cb261:0x30b,_0x52d813:0x2fb,_0x47abc4:0x303,_0x4a5ee0:0x2d9,_0x9c5332:0x2f6,_0x2be00f:0x2ff,_0x8977aa:0x2f1},_0x1acea5={_0x8ae845:0x193},_0x1c3302={_0x11af4d:0x174};function _0x7ed38f(_0x5a5af5,_0x56fa67,_0x26fff9,_0x3bb343){return _0x1c86(_0x3bb343-_0x1c3302._0x11af4d,_0x26fff9);}function _0x1d22c9(_0x158b80,_0x502b42,_0x52f6df,_0x197a4b){return _0x1c86(_0x502b42- -_0x1acea5._0x8ae845,_0x197a4b);}return _0x20b314[_0x7ed38f(_0x3a70ce._0x1ae1ae,_0x3a70ce._0x35400f,_0x3a70ce._0x5add3c,0x2f8)]()[_0x1d22c9(-_0x3a70ce._0x59e5de,-_0x3a70ce._0x130d96,-_0x3a70ce._0x4b1ec4,-_0x3a70ce._0x3f6520)](_0x1d22c9(-_0x3a70ce._0x1648e7,-_0x3a70ce._0xc30348,-_0x3a70ce._0x143de7,-0x17)+'+$')[_0x7ed38f(_0x3a70ce._0xfe82c3,_0x3a70ce._0x2cd04e,0x2f1,_0x3a70ce._0x2ed380)]()[_0x1d22c9(-_0x3a70ce._0x3f2dbd,-_0x3a70ce._0x4f8498,-_0x3a70ce._0xb88b43,0x7)+'r'](_0x20b314)[_0x7ed38f(_0x3a70ce._0xaff228,_0x3a70ce._0x1cb261,_0x3a70ce._0x52d813,_0x3a70ce._0x47abc4)](_0x7ed38f(_0x3a70ce._0x4a5ee0,_0x3a70ce._0x9c5332,_0x3a70ce._0x2be00f,_0x3a70ce._0x8977aa)+'+$');});_0x20b314();import{buffers,channel}from'redux-saga';import{fork,select,call,put,takeEvery,takeLatest,take,delay,flush,race}from'redux-saga/effects';import{getCoreBackend}from'../../../backend';import{searchRoomsApi}from'../../../api/core';import{taskErrorSaga}from'../../error';import{apiSubscribeSaga,forkChildren,apiSubscribeLatest}from'../../lib';import{normalizedIncludes}from'../../lib/string';import{setBlockedMembers}from'../../identity';import{getChatLastMessageByRoomId,setChatMessageLastSeen,updateChatLastMessage,updateChatLastMessageBlocked,sendChatMessageSuccess,chatSubscribeUnreadSaga,chatUnreadSyncData}from'../../chat';import{getRoomListSearchText,searchAllRooms,getRoomListAllIds,setSearchRoomIds,getRoomListInViewIds,setItemsInView,roomListInViewIdsChangeEvt,setRoomListSearchError,setUnreadRoomsCount,getRoomListUnreadRoomsCount,getRoomListSearchIds,setRoomListIsSearching,getRoomListIsSearching,getRecentRoomsBufferInterval,setScrollToRoomId}from'./room-list.reducer';import{setAllRooms,updateRecentRooms,addOrRemoveRecentRoom,createRoomSubmit}from'../room.action';import{getRoomAllNotifications,getRoomNotificationById}from'../room.selector';import{RECENT_ROOM_UPDATE,ROOM_PREFERENCES,defaultRoomPreferences}from'../room.constant';import{parseRecentRoomsAllResponse,parseRecentRoomsChangeResponse,parseRecentRoomsAddRemoveResponse}from'../room.model';import{getPreferencesNotificationsType,NOTIFICATIONS_TYPES}from'../../preferences';function _0x1c86(_0x5beeca,_0xf0fd5b){const _0x241560=_0x2bc0();return _0x1c86=function(_0x46c1ee,_0x1cb456){_0x46c1ee=_0x46c1ee-(-0x3*-0x3b3+-0x1*-0x1b10+-0x24c1);let _0x28061e=_0x241560[_0x46c1ee];return _0x28061e;},_0x1c86(_0x5beeca,_0xf0fd5b);}import{roomListItemUpdateSaga}from'./room-list-item-update-saga';function*roomListInViewSaga(){const _0x5c5e26={_0x51213b:0x13f,_0x5093cc:0x139,_0x34c6ac:0x141,_0x40622b:0x150,_0x1ed113:0x132,_0x33a2ed:0x137,_0x2519d1:0x12c,_0x1c0d2b:0x139,_0x3a6648:0x14c,_0x306ccb:0x130,_0x22a335:0x139,_0x3ba6a2:0x14b,_0x1d09e9:0x133},_0x5a384d={_0x22882e:0xc4},_0x47b954={};function*_0x1668b2(){const _0x5742a9={_0x24b5e5:0x2ba},_0x59e8a7={_0x481a4a:0x336,_0x42bee9:0x31f,_0x4ed4db:0x32e},_0x725da9={_0x3cb5ea:0x476,_0x5c1753:0x17d},_0x2d8f4c=yield select(getRoomListInViewIds);let _0x4d5762=![];function _0xf713a6(_0x36a352,_0x4c27c3,_0x268025,_0x9567c5){return _0x1c86(_0x268025-_0x5a384d._0x22882e,_0x4c27c3);}Object['keys'](_0x47b954)[_0x38f8a7(-_0x5c5e26._0x51213b,-_0x5c5e26._0x5093cc,-_0x5c5e26._0x34c6ac,-_0x5c5e26._0x40622b)](_0x159396=>{function _0x1e8f8b(_0x455a89,_0x497f6a,_0xba11ac,_0x1a56bc){return _0x38f8a7(_0x455a89-0xd5,_0x455a89-_0x725da9._0x3cb5ea,_0x1a56bc,_0x1a56bc-_0x725da9._0x5c1753);}!_0x2d8f4c[_0x1e8f8b(_0x59e8a7._0x481a4a,_0x59e8a7._0x42bee9,_0x59e8a7._0x4ed4db,0x32f)](_0x159396)&&(delete _0x47b954[_0x159396],_0x4d5762=!![]);});const _0x86fb4e=_0x2d8f4c[_0x38f8a7(-0x138,-_0x5c5e26._0x34c6ac,-_0x5c5e26._0x1ed113,-_0x5c5e26._0x33a2ed)](_0xfd0505=>!_0x47b954[_0xfd0505]);_0x86fb4e[_0x38f8a7(-_0x5c5e26._0x2519d1,-_0x5c5e26._0x1c0d2b,-_0x5c5e26._0x3a6648,-_0x5c5e26._0x306ccb)](_0x589632=>{_0x47b954[_0x589632]=!![],_0x4d5762=!![];});function _0x38f8a7(_0xe6aa3f,_0x1ab1c0,_0x5df806,_0x29d284){return _0x1c86(_0x1ab1c0- -_0x5742a9._0x24b5e5,_0x5df806);}_0x4d5762&&(yield put(roomListInViewIdsChangeEvt(Object[_0x38f8a7(-_0x5c5e26._0x22a335,-_0x5c5e26._0x3ba6a2,-0x160,-_0x5c5e26._0x1d09e9)](_0x47b954))));}yield takeLatest([setSearchRoomIds,setAllRooms,updateRecentRooms,addOrRemoveRecentRoom,setItemsInView],_0x1668b2);}export function*roomSearchSaga(){const _0x22e735={_0x37d537:0x32,_0x156bd9:0x35,_0x4951d7:0x1e,_0x4d73dd:0x17e,_0x521fbb:0x167,_0x943502:0x162,_0x1fa100:0x15b,_0xb23993:0x16c},_0x1baa6b={_0x520bbe:0xa4,_0x596c5f:0x9d,_0x210762:0x98,_0x43028d:0x95},_0x3087e7={_0x2242f2:0x160,_0xac172f:0x15a,_0x4d1a36:0x56},_0x3950c5={_0x4d0edf:0x2e7},_0x4253f7={_0x4009d5:0x1b5};function _0x1c3227(_0x1c9793,_0x11de9a,_0x389dda,_0x2fb65c){return _0x1c86(_0x389dda- -_0x4253f7._0x4009d5,_0x2fb65c);}const _0x134cd9=yield select(getRoomListSearchText);function _0x1a6603(_0x3dc448,_0x33e6b5,_0xb48485,_0x599aa8){return _0x1c86(_0x3dc448- -_0x3950c5._0x4d0edf,_0x33e6b5);}if(!_0x134cd9){const _0x4d52ab=yield select(getRoomListSearchIds);_0x4d52ab[_0x1c3227(-0x32,-_0x22e735._0x37d537,-0x23,-0x19)]>0x194f+0x15bb+-0x2f0a&&(yield put(setSearchRoomIds([])));return;}try{const _0x3d2217=yield select(getRoomListIsSearching);!_0x3d2217&&(yield put(setRoomListIsSearching(!![])));const _0x1d35a9=yield*searchRoomsApi(),_0x41a7a6=_0x1d35a9[_0x1c3227(-_0x22e735._0x156bd9,-0x36,-_0x22e735._0x4951d7,-0x16)]((_0x438959,_0x3df160)=>{const {title:_0x1d8573,roomId:_0x2f6171}=_0x3df160;_0x1d8573&&normalizedIncludes(_0x1d8573,_0x134cd9)&&_0x438959[_0x170890(-_0x1baa6b._0x520bbe,-_0x1baa6b._0x596c5f,-_0x1baa6b._0x210762,-_0x1baa6b._0x43028d)](_0x2f6171);function _0x170890(_0x53788c,_0x1a0f4a,_0x980aa4,_0x4565e4){return _0x1c3227(_0x53788c-_0x3087e7._0x2242f2,_0x1a0f4a-_0x3087e7._0xac172f,_0x4565e4- -_0x3087e7._0x4d1a36,_0x53788c);}return _0x438959;},[]);yield put(setSearchRoomIds(_0x41a7a6));}catch(_0x28e6de){yield put(setRoomListSearchError(_0x28e6de[_0x1a6603(-0x172,-0x17e,-_0x22e735._0x4d73dd,-0x183)])),yield taskErrorSaga(_0x1a6603(-_0x22e735._0x521fbb,-_0x22e735._0x943502,-_0x22e735._0x1fa100,-_0x22e735._0xb23993)+'All',_0x28e6de,{'logOnly':!![]});}}export function*roomListDataSaga({appVersion:_0x20c5ff}){const _0x12e67f={_0x20d6f7:0x270,_0x2dbf74:0x265,_0x52d9b6:0x25e,_0x162b4a:0x254},_0x1c01b8={_0x17cfd3:0xce},_0x1ff8f2={_0x31d490:0x28};function _0x47183f(_0x4075e5,_0x3ced9e,_0x66c3c4,_0x432573){return _0x1c86(_0x66c3c4-_0x1ff8f2._0x31d490,_0x3ced9e);}yield takeEvery(setBlockedMembers,function*_0x5e7e66({payload:{blockedByMemberId:_0x245d7f}}){yield put(updateChatLastMessageBlocked({'blockedByMemberId':_0x245d7f}));}),yield forkChildren(roomListInViewIdsChangeEvt,({payload:_0x23e2c5})=>_0x23e2c5,function*_0x4cb53c({taskId:_0x33da19}){function _0x5e312c(_0x182af0,_0xa48098,_0x2a8517,_0x422797){return _0x1c86(_0x2a8517-_0x1c01b8._0x17cfd3,_0xa48098);}function _0xcac2cf(_0x2da6ca,_0x43d319,_0x39556c,_0x4d2959){return _0x1c86(_0x4d2959-0x292,_0x43d319);}yield fork(chatSubscribeUnreadSaga,{'roomId':_0x33da19}),yield apiSubscribeLatest([getCoreBackend()[_0x5e312c(_0x12e67f._0x20d6f7,_0x12e67f._0x2dbf74,_0x12e67f._0x52d9b6,_0x12e67f._0x162b4a)+'oomInfo'],_0x33da19],function*_0x3dcf5e(_0x8b5735){yield roomListItemUpdateSaga({'data':_0x8b5735,'roomId':_0x33da19,'appVersion':_0x20c5ff,'trackLastMsgUpdates':!![],'trackNotificationsUpdates':!![]});},{'onError':_0x4a7472=>taskErrorSaga(_0xcac2cf(0x3ed,0x3f7,0x3ec,0x402)+_0x5e312c(0x249,0x24d,0x253,0x245),_0x4a7472)});},_0x5a8891=>taskErrorSaga(_0x47183f(0x181,0x1ae,0x198,0x1aa)+'em',_0x5a8891));}export function*calculateAndUpdateUnreadRoomsCount(){const _0x4686a8={_0x43284b:0x51c,_0x4ffd48:0x52d,_0x292481:0x532,_0x5df9ee:0x54c,_0x2ef1e9:0x53c,_0x12ccf8:0x54f,_0x1337a9:0x534,_0x4e66ee:0x544,_0x35fa6a:0x557,_0x4aaa85:0x55b,_0x34b23d:0x543,_0x382ad3:0x54a,_0x2dade9:0x550,_0x46262b:0x412,_0x1dd20b:0x407,_0x283b26:0x40f,_0x61f8a2:0x40b,_0x25da2f:0x42c,_0x53fa15:0x52e,_0x3848b2:0x546,_0x309ef3:0x53b},_0x1e0408={_0x3b8083:0x2a7},_0x4982ea={_0x257e9e:0x3c4};function _0x499fad(_0x5c69ab,_0x4e1aa5,_0xb5edb0,_0x4a679e){return _0x1c86(_0x4e1aa5-_0x4982ea._0x257e9e,_0xb5edb0);}function _0x43a1c3(_0x1bae09,_0x145406,_0xf4e63a,_0x182591){return _0x1c86(_0x145406-_0x1e0408._0x3b8083,_0x1bae09);}try{const _0x5b622e=yield select(getChatLastMessageByRoomId),_0x175b52=yield select(getRoomListAllIds),_0x4489c7=yield select(getPreferencesNotificationsType),_0x209c16=yield select(getRoomListUnreadRoomsCount),_0x2d2afc=_0x4489c7!==NOTIFICATIONS_TYPES[_0x499fad(_0x4686a8._0x43284b,0x52e,_0x4686a8._0x4ffd48,_0x4686a8._0x292481)];let _0xbd9894=0x1569+-0x22b3+0xd4a;if(_0x2d2afc){const _0x4a800f=yield select(getRoomAllNotifications);for(const _0x26a7e0 of _0x175b52){const _0xdc1e8c=yield select(getRoomNotificationById(_0x26a7e0));if(!_0xdc1e8c)continue;const _0x428547=_0x4a800f[_0x26a7e0]||defaultRoomPreferences,_0x2863ac=_0x5b622e[_0x26a7e0];_0x2863ac?.[_0x499fad(_0x4686a8._0x5df9ee,_0x4686a8._0x2ef1e9,_0x4686a8._0x12ccf8,_0x4686a8._0x1337a9)]&&_0x428547[ROOM_PREFERENCES[_0x499fad(_0x4686a8._0x4e66ee,0x55a,_0x4686a8._0x35fa6a,_0x4686a8._0x4aaa85)+_0x499fad(0x556,_0x4686a8._0x34b23d,_0x4686a8._0x382ad3,_0x4686a8._0x2dade9)]]&&(_0xbd9894+=-0x18ea+0x2201+-0x916*0x1);}}if(_0x209c16===_0xbd9894)return;yield put(setUnreadRoomsCount(_0xbd9894));}catch(_0x3caf57){yield taskErrorSaga(_0x43a1c3(0x41c,_0x4686a8._0x46262b,_0x4686a8._0x1dd20b,_0x4686a8._0x283b26)+'ndUpdateUn'+_0x43a1c3(0x407,0x414,_0x4686a8._0x61f8a2,_0x4686a8._0x25da2f)+_0x499fad(_0x4686a8._0x53fa15,_0x4686a8._0x3848b2,_0x4686a8._0x309ef3,_0x4686a8._0x53fa15),_0x3caf57);}}export function*throttleRecentRoomChanged(_0x5796ef){const _0x35c6df={_0x38ec8f:0x388,_0x58bac4:0x36d,_0x4d19e6:0x364,_0x3859a7:0x370,_0x526515:0x4e3,_0x5c15e1:0x4e6,_0x406c7e:0x4ce,_0x53d34b:0x4a5,_0x1f0301:0x4ba,_0xb47120:0x4a9,_0x1d6e02:0x4d0,_0xb70236:0x4e6,_0x5dd8a4:0x4f1,_0x3d00cf:0x4d1},_0x15feb7={_0x48e201:0x352},_0x3c7f8d={_0x700f7e:0x1f9};function _0x56b676(_0xdd57ed,_0x16b33c,_0x1fa250,_0x8bdda5){return _0x1c86(_0x8bdda5-_0x3c7f8d._0x700f7e,_0x1fa250);}function _0x58d6ad(_0x41362f,_0x15c1a5,_0x59252a,_0x45cb2b){return _0x1c86(_0x15c1a5-_0x15feb7._0x48e201,_0x45cb2b);}try{const _0x4b32b8=yield select(getRecentRoomsBufferInterval);while(!![]){const _0x44b791=yield take(_0x5796ef),_0x57e94=yield flush(_0x5796ef);let _0x31f128=[_0x44b791];Array['isArray'](_0x57e94)&&(_0x31f128=_0x57e94[_0x56b676(_0x35c6df._0x38ec8f,_0x35c6df._0x58bac4,_0x35c6df._0x4d19e6,_0x35c6df._0x3859a7)]()[_0x58d6ad(_0x35c6df._0x526515,0x4d8,_0x35c6df._0x5c15e1,_0x35c6df._0x406c7e)](_0x44b791)),yield put(updateRecentRooms(_0x31f128)),yield delay(_0x4b32b8);}}catch(_0x17af78){yield taskErrorSaga(_0x58d6ad(_0x35c6df._0x53d34b,_0x35c6df._0x1f0301,0x4d0,_0x35c6df._0xb47120)+'centRoomUp'+_0x58d6ad(_0x35c6df._0x1d6e02,_0x35c6df._0xb70236,_0x35c6df._0x5dd8a4,_0x35c6df._0x3d00cf),_0x17af78);}}const SCROLL_TO_ROOM_TIMEOUT=0x35*0x8b+-0x2329+-0x1*-0x7f2;function _0x2bc0(){const _0x24c2a4=['reduce','throttleRe','roomId','NONE','calculateA','6DLmXBK','readRoomsC','apply','keys','roomListIt','1008ITQLny','ADDED','1397112EiIoju','10romeTM','message','push','reverse','unread','filter','includes','10687017BQChpx','841845bvcLDu','(((.+)+)+)','862184GfaONe','ONS','roomSearch','forEach','ount','roomListSa','toString','emTask','concat','6vVjSsq','26110emuVgD','5692905KLiEdU','type','REMOVED','expanding','constructo','ALL','search','subscribeR','3389990kahNWs','length','payload','dates','ecentRooms','NOTIFICATI'];_0x2bc0=function(){return _0x24c2a4;};return _0x2bc0();}function*scrollToRoomFlow(){const _0x285915={_0x39aedf:0xe4,_0x14a89a:0xdd,_0x4f4abe:0xe5,_0x5dcf83:0xf5,_0x1a0587:0xab,_0x3d499d:0xb3,_0x266fd6:0x4a4,_0x18841f:0x48f,_0x2872f9:0x49b,_0x3178dc:0x48c,_0x3f89fd:0x48e,_0xbb3285:0xb3,_0x12bf30:0xad},_0x2b9fe7={_0x5689c3:0x31a},_0x489648={_0xea9d6c:0xb6};function _0x492f29(_0x313ebb,_0x57f8f9,_0x2c76c2,_0x2b1983){return _0x1c86(_0x57f8f9- -_0x489648._0xea9d6c,_0x2b1983);}function _0x205667(_0x595e70,_0x45add9,_0x5e4b02,_0x3cace0){return _0x1c86(_0x5e4b02-_0x2b9fe7._0x5689c3,_0x595e70);}while(!![]){yield take(createRoomSubmit);const {response:_0x57a93a}=yield race({'delay':delay(SCROLL_TO_ROOM_TIMEOUT),'response':take(addOrRemoveRecentRoom)}),_0x41462d=_0x57a93a?.[_0x492f29(_0x285915._0x39aedf,_0x285915._0x14a89a,_0x285915._0x4f4abe,_0x285915._0x5dcf83)];if(!_0x41462d?.[_0x492f29(0xb5,0xb3,_0x285915._0x1a0587,_0x285915._0x3d499d)]||_0x41462d[_0x205667(0x4a6,0x48e,_0x285915._0x266fd6,_0x285915._0x18841f)]!==RECENT_ROOM_UPDATE[_0x205667(0x494,_0x285915._0x2872f9,_0x285915._0x3178dc,_0x285915._0x3f89fd)])continue;yield put(setScrollToRoomId(_0x41462d[_0x492f29(0xa1,_0x285915._0xbb3285,0xc5,_0x285915._0x12bf30)]));}}function*scrollToRoomSaga(){const _0x2d351f={_0xecc06b:0x387,_0x47210f:0x390,_0x3da414:0x37d};yield fork(scrollToRoomFlow),yield takeLatest(sendChatMessageSuccess,function*_0xeb6357({payload:_0x2883a5}){const _0x44d5a0={_0x423fbc:0x21f};function _0x5ccc84(_0x38418b,_0x254a76,_0x3c237e,_0x10d22c){return _0x1c86(_0x10d22c-_0x44d5a0._0x423fbc,_0x38418b);}yield put(setScrollToRoomId(_0x2883a5[_0x5ccc84(_0x2d351f._0xecc06b,_0x2d351f._0x47210f,_0x2d351f._0x3da414,0x388)]));});}export function*roomListSaga({appVersion:_0x1975ee}){const _0x5b9e51={_0x4dbbc0:0x165,_0x57e52b:0x153,_0x3234f4:0x169,_0x4fe3e1:0x172,_0x3b7fab:0x1ad,_0x3dad15:0x1c2,_0x567646:0x1b8,_0x415081:0x1d8,_0x38a9e3:0x1c5,_0x2193ae:0x1bd,_0x35ef03:0x16e,_0x2b23e4:0x186,_0x5b7d3e:0x182,_0x244c65:0x17e},_0x455b9b={_0xe30fa3:0x191,_0x461eee:0x1a9,_0x21fb1c:0x185,_0x2f2118:0x190,_0x4b1c9a:0x199,_0x56bbea:0x2e3,_0x505ef3:0x2ca,_0x39b4f2:0x2d9,_0x27fe0a:0x192,_0x237b16:0x197,_0x274d52:0x17c},_0x313310={_0x415d42:0x2f1},_0x88b2fc={_0x54ef24:0x352};function _0x48be53(_0x1e1233,_0x2cf180,_0xf6972d,_0x6fe8ce){return _0x1c86(_0x2cf180- -_0x88b2fc._0x54ef24,_0xf6972d);}function _0xd5d863(_0x28b134,_0x2bc5f5,_0x283a27,_0x15bc73){return _0x1c86(_0x28b134- -_0x313310._0x415d42,_0x2bc5f5);}try{yield takeLatest([searchAllRooms,addOrRemoveRecentRoom],roomSearchSaga),yield takeEvery([updateChatLastMessage,setChatMessageLastSeen,chatUnreadSyncData],calculateAndUpdateUnreadRoomsCount),yield fork(roomListInViewSaga),yield fork(roomListDataSaga,{'appVersion':_0x1975ee}),yield fork(scrollToRoomSaga);const _0x322225=yield call(channel,buffers[_0xd5d863(-_0x5b9e51._0x4dbbc0,-_0x5b9e51._0x57e52b,-_0x5b9e51._0x3234f4,-_0x5b9e51._0x4fe3e1)](0x16fb+-0x1*0x80f+-0xed8));yield fork(throttleRecentRoomChanged,_0x322225),yield apiSubscribeSaga([getCoreBackend()[_0x48be53(-_0x5b9e51._0x3b7fab,-_0x5b9e51._0x3dad15,-_0x5b9e51._0x567646,-_0x5b9e51._0x415081)+_0x48be53(-_0x5b9e51._0x38a9e3,-_0x5b9e51._0x2193ae,-0x1af,-0x1d3)],{}],function*_0x52ea3b(_0x13e6c4){const _0x1d0ec4={_0x563ce1:0x1b1,_0x8577b4:0x118},_0xf2bc25={_0x4f09b2:0x14e};function _0x295928(_0x5045d5,_0x58fd1b,_0x67ecf4,_0x48e239){return _0x48be53(_0x5045d5-_0xf2bc25._0x4f09b2,_0x5045d5-0x359,_0x48e239,_0x48e239-0x1d3);}function _0x139649(_0x43fb3d,_0x255df4,_0x200ed3,_0xebabac){return _0xd5d863(_0xebabac-0x458,_0x255df4,_0x200ed3-_0x1d0ec4._0x563ce1,_0xebabac-_0x1d0ec4._0x8577b4);}switch(_0x13e6c4[_0x295928(_0x455b9b._0xe30fa3,0x195,_0x455b9b._0x461eee,_0x455b9b._0x21fb1c)]){case RECENT_ROOM_UPDATE[_0x295928(0x195,0x182,_0x455b9b._0x2f2118,_0x455b9b._0x4b1c9a)]:{yield put(setAllRooms(parseRecentRoomsAllResponse(_0x13e6c4)));return;}case RECENT_ROOM_UPDATE['CHANGED']:{yield put(_0x322225,parseRecentRoomsChangeResponse(_0x13e6c4));return;}case RECENT_ROOM_UPDATE[_0x139649(_0x455b9b._0x56bbea,_0x455b9b._0x505ef3,0x2db,_0x455b9b._0x39b4f2)]:case RECENT_ROOM_UPDATE[_0x295928(_0x455b9b._0x27fe0a,_0x455b9b._0x237b16,0x190,_0x455b9b._0x274d52)]:{yield put(addOrRemoveRecentRoom(parseRecentRoomsAddRemoveResponse(_0x13e6c4)));return;}default:{yield taskErrorSaga('subscribeR'+'ecentRooms','invalid\x20da'+'ta',{'logWarn':!![]});}}},{'onError':_0x252dfd=>taskErrorSaga('subscribeR'+'ecentRooms',_0x252dfd)});}catch(_0x4b8c15){yield taskErrorSaga(_0xd5d863(-_0x5b9e51._0x35ef03,-_0x5b9e51._0x2b23e4,-_0x5b9e51._0x5b7d3e,-_0x5b9e51._0x244c65)+'ga',_0x4b8c15);}}