Don't unsubscribe from chat or armored chat breaks too

This commit is contained in:
Ada 2025-04-14 07:10:39 +10:00
parent db6049f159
commit 04b825c272

View file

@ -205,12 +205,10 @@ AvatarList.avatarSessionChangedEvent.connect((_, oldSessionID) => ChatBubbles_De
settings = Settings.getValue("ChatBubbles-Config", settings);
Messages.messageReceived.connect(ChatBubbles_RecvMsg);
Messages.subscribe(TYPING_NOTIFICATION_CHANNEL);
Messages.subscribe("chat");
Script.scriptEnding.connect(() => {
Settings.setValue("ChatBubbles-Config", settings);
Messages.messageReceived.disconnect(ChatBubbles_RecvMsg);
Messages.unsubscribe(TYPING_NOTIFICATION_CHANNEL);
Messages.unsubscribe("chat");
ChatBubbles_DeleteAll();
});