fix zoomed avatars when swapping personas

This commit is contained in:
RossAscends 2023-09-05 10:09:35 +09:00
parent 8636987d8a
commit ab8fb98f5d
1 changed files with 3 additions and 2 deletions

View File

@ -4723,6 +4723,7 @@ function setUserAvatar() {
saveSettingsDebounced();
highlightSelectedAvatar();
selectCurrentPersona();
$('.zoomed_avatar[forchar]').remove();
}
async function uploadUserAvatar(e) {
@ -6423,7 +6424,7 @@ function swipe_left() { // when we swipe left..but no generation.
const swipeMessage = $("#chat").find(`[mesid="${count_view_mes - 1}"]`);
const tokenCount = getTokenCount(chat[chat.length - 1].mes, 0);
chat[chat.length -1]['extra']['token_count'] = tokenCount;
chat[chat.length - 1]['extra']['token_count'] = tokenCount;
swipeMessage.find('.tokenCounterDisplay').text(`${tokenCount}t`);
}
@ -6600,7 +6601,7 @@ const swipe_right = () => {
}
const tokenCount = getTokenCount(chat[chat.length - 1].mes, 0);
chat[chat.length -1]['extra']['token_count'] = tokenCount;
chat[chat.length - 1]['extra']['token_count'] = tokenCount;
swipeMessage.find('.tokenCounterDisplay').text(`${tokenCount}t`);
}
}