Fix character renaming. Workaround for Node 20 bug. Adjust spec v2 fields

This commit is contained in:
SillyLossy
2023-06-03 15:29:35 +03:00
parent 380b20b94d
commit f1924b6c12
4 changed files with 28 additions and 19 deletions

View File

@ -954,7 +954,7 @@ function select_group_chats(groupId, skipAnimation) {
template.find(".avatar img").attr("title", character.avatar);
template.find(".ch_name").text(character.name);
template.attr("chid", characters.indexOf(character));
template.addClass(character.fav == 'true' ? 'is_fav' : '');
template.toggleClass('is_fav', character.fav || character.fav == 'true');
if (!group) {
template.find('[data-action="speak"]').hide();