mirror of
https://github.com/twisterarmy/twister-html.git
synced 2025-03-12 05:21:18 +00:00
check to avoid infinite loop of direct messages postboard updating
This commit is contained in:
parent
c95e3d14bd
commit
fad1e9780a
@ -45,12 +45,11 @@ function processDMsnippet(dmUsers, dmThreadList) {
|
|||||||
$.MAL.dmThreadListLoaded();
|
$.MAL.dmThreadListLoaded();
|
||||||
}
|
}
|
||||||
|
|
||||||
function requestDmConversationModal(dmConvo,dm_screenname) {
|
function requestDmConversationModal(postboard, dm_screenname) {
|
||||||
if( dmConvo.parents(".modal-wrapper").css("display") == 'none' )
|
if (postboard.is('html *')) {
|
||||||
return;
|
requestDmConversation(postboard, dm_screenname);
|
||||||
|
setTimeout(requestDmConversationModal, 1000, postboard, dm_screenname);
|
||||||
requestDmConversation(dmConvo,dm_screenname);
|
}
|
||||||
setTimeout( function() {requestDmConversationModal(dmConvo,dm_screenname);}, 1000);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function requestDmConversation(dmConvo,dm_screenname) {
|
function requestDmConversation(dmConvo,dm_screenname) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user