mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-11-15 02:21:21 +01:00
Attempt to fix when message delete and no more messages present
This commit is contained in:
parent
57669576c9
commit
0433040ede
@ -1733,11 +1733,11 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$("#discordmessage_"+msg.id).parent().remove();
|
$("#discordmessage_"+msg.id).parent().remove();
|
||||||
var lastelem = $("#chatcontent").find("[id^=discordmessage_]").last();
|
var lastelem = $("#chatcontent").find("[id^=discordmessage_]");
|
||||||
if (!lastelem.length) {
|
if (lastelem.length) {
|
||||||
last_message_id = null;
|
last_message_id = lastelem.last().attr('id').substring(15);
|
||||||
} else {
|
} else {
|
||||||
last_message_id = lastelem.attr('id').substring(15);
|
last_message_id = null;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user