Proper treatment for groups #4008

5359c76923c3941357c1291c5c8349ccc40734a4

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +3 -3Ignore whitespace
public/scripts/group-chats.js+3 -3
@@ -715,7 +715,7 @@ export function getGroupBlock(group) {
715715
716 // Display inline tags716 // Display inline tags
717 const tagsElement = template.find('.tags');717 const tagsElement = template.find('.tags');
718 printTagList(tagsElement, { forEntityOrKey: group.id });718 printTagList(tagsElement, { forEntityOrKey: group.id, tagOptions: { isCharacterList: true } });
719719
720 const avatar = getGroupAvatar(group);720 const avatar = getGroupAvatar(group);
721 if (avatar) {721 if (avatar) {
@@ -957,7 +957,7 @@ async function generateGroupWrapper(by_auto_mode, type = null, params = {}) {
957 setCharacterName('');957 setCharacterName('');
958 activateSendButtons();958 activateSendButtons();
959 showSwipeButtons();959 showSwipeButtons();
960 await eventSource.emit(event_types.GROUP_WRAPPER_FINISHED, { selected_group, type });960 await eventSource.emit(event_types.GROUP_WRAPPER_FINISHED, { selected_group, type });
961 }961 }
962962
963 return Promise.resolve(textResult);963 return Promise.resolve(textResult);
@@ -1482,7 +1482,7 @@ function getGroupCharacterBlock(character) {
14821482
1483 // Display inline tags1483 // Display inline tags
1484 const tagsElement = template.find('.tags');1484 const tagsElement = template.find('.tags');
1485 printTagList(tagsElement, { forEntityOrKey: characters.indexOf(character) });1485 printTagList(tagsElement, { forEntityOrKey: characters.indexOf(character), tagOptions: { isCharacterList: true } });
14861486
1487 if (!openGroupId) {1487 if (!openGroupId) {
1488 template.find('[data-action="speak"]').hide();1488 template.find('[data-action="speak"]').hide();