diff --git a/etc/init.shy b/etc/init.shy index a13a122..e66f0ea 100644 --- a/etc/init.shy +++ b/etc/init.shy @@ -1,5 +1,6 @@ ~ssh source local.shy +return ~web.chat.macos desktop create index web.team.gonganxitong.recent name recent icon "src/gonganxitong/credit.png" desktop create index web.team.gonganxitong.service name service icon "src/gonganxitong/setting.png" diff --git a/src/gonganxitong/sess.go b/src/gonganxitong/sess.go index 2078a20..6401cb5 100644 --- a/src/gonganxitong/sess.go +++ b/src/gonganxitong/sess.go @@ -40,7 +40,7 @@ func (s sess) Check(m *ice.Message, arg ...string) { m.Option(ice.MSG_USERROLE, aaa.VOID) m.Option(ice.MSG_USERNAME, msg.Append(model.UID)) m.Option(ice.MSG_USERNICK, msg.Append(model.NAME)) - m.Option(ice.MSG_LANGUAGE, msg.Append(model.LANGUAGE)) + kit.If(msg.Append(model.LANGUAGE), func(p string) { m.Option(ice.MSG_LANGUAGE, p) }) m.Option(ice.MSG_AVATAR, msg.Append(model.AVATAR)) m.Option(ice.MSG_USERUID, msg.Append(model.UID)) m.OptionDefault(model.USER_UID, msg.Append(model.UID)) diff --git a/usr/local/export/web.chat.macos.desktop/hash.json b/usr/local/export/web.chat.macos.desktop/hash.json index c37b802..90da15c 100644 --- a/usr/local/export/web.chat.macos.desktop/hash.json +++ b/usr/local/export/web.chat.macos.desktop/hash.json @@ -4,7 +4,7 @@ "icon": "src/gonganxitong/setting.png", "index": "web.team.gonganxitong.service", "name": "service", - "time": "2025-06-12 08:26:22.118" + "time": "2025-06-12 08:32:37.216" } }, "3a5880f6ddd07eb9fe27b3cb3afb3f7e": { @@ -28,7 +28,7 @@ "icon": "src/gonganxitong/credit.png", "index": "web.team.gonganxitong.recent", "name": "recent", - "time": "2025-06-12 08:26:22.118" + "time": "2025-06-12 08:32:37.216" } }, "c6365efa0c8373fcf2bc8d44618ad782": {