feat: groups sidebar collapsible (#1094)

* wip

* wip

* add prettier formatter config for pug files

* feat: groups sidebar collapsible (#1079)

* rm old code
This commit is contained in:
pa
2025-01-25 01:30:07 +09:00
committed by GitHub
parent 5c9840ca5e
commit 51a1897a76
7 changed files with 472 additions and 163 deletions

View File

@@ -1216,7 +1216,7 @@ export default class extends baseClass {
API.$on('GROUP:USER:INSTANCES', function (args) {
$app.groupInstances = [];
for (var json of args.json.instances) {
for (const json of args.json.instances) {
if (args.json.fetchedAt) {
// tack on fetchedAt
json.$fetchedAt = args.json.fetchedAt;
@@ -1227,7 +1227,7 @@ export default class extends baseClass {
fetchedAt: args.json.fetchedAt
}
});
var ref = this.cachedGroups.get(json.ownerId);
const ref = this.cachedGroups.get(json.ownerId);
if (typeof ref === 'undefined') {
if ($app.friendLogInitStatus) {
this.getGroup({ groupId: json.ownerId });