mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-11-15 02:21:21 +01:00
Fix dupe click mentioning
This commit is contained in:
parent
0f6b718b6e
commit
76863cd017
@ -854,6 +854,12 @@
|
|||||||
handle_last_message_mention();
|
handle_last_message_mention();
|
||||||
$("#chatcontent p:last-child").find(".blockcode").find("br").remove(); // Remove excessive breaks in codeblocks
|
$("#chatcontent p:last-child").find(".blockcode").find("br").remove(); // Remove excessive breaks in codeblocks
|
||||||
render_code_highlighting($("#chatcontent p:last-child").find(".blockcode"));
|
render_code_highlighting($("#chatcontent p:last-child").find(".blockcode"));
|
||||||
|
$("#chatcontent .chatusername").last().click(function () {
|
||||||
|
var discordid = $(this).parent().attr("discord_userid");
|
||||||
|
if (discordid) {
|
||||||
|
mention_member(discordid);
|
||||||
|
}
|
||||||
|
});
|
||||||
} else {
|
} else {
|
||||||
replace.html($(rendered).html());
|
replace.html($(rendered).html());
|
||||||
replace.find(".blockcode").find("br").remove();
|
replace.find(".blockcode").find("br").remove();
|
||||||
@ -865,7 +871,6 @@
|
|||||||
}
|
}
|
||||||
if (!(usrcachekey in message_users_cache)) {
|
if (!(usrcachekey in message_users_cache)) {
|
||||||
message_users_cache[usrcachekey] = {"data": {}, "msgs": []};
|
message_users_cache[usrcachekey] = {"data": {}, "msgs": []};
|
||||||
|
|
||||||
}
|
}
|
||||||
message_users_cache[usrcachekey]["msgs"].push(message.id);
|
message_users_cache[usrcachekey]["msgs"].push(message.id);
|
||||||
last = message.id;
|
last = message.id;
|
||||||
@ -877,12 +882,6 @@
|
|||||||
target: "_blank"
|
target: "_blank"
|
||||||
});
|
});
|
||||||
$('.tooltipped').tooltip();
|
$('.tooltipped').tooltip();
|
||||||
$("#chatcontent .chatusername").click(function () {
|
|
||||||
var discordid = $(this).parent().attr("discord_userid");
|
|
||||||
if (discordid) {
|
|
||||||
mention_member(discordid);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
process_message_users_cache();
|
process_message_users_cache();
|
||||||
return last;
|
return last;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user