New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix load of channels from user config #4710
Conversation
Can you add test coverage for this? |
I don't think I can do that without refactoring; it's in a the function that instantiates irc-framework |
Mhm yeah. I'm trying to think how this worked (before?) and when did it break. |
73380ee
to
aa6ef4e
Compare
d60299c
to
160f10c
Compare
Can you squash down the fixes? Then I'll merge it. |
Network.export() only writes the "type" key if it's a ChanType.QUERY; so the config on disk has no "type". This causes it to be undefined when loading, which breaks various other checks, and then drops it the next time the config is saved.
160f10c
to
0c7cc85
Compare
done |
Thank you val |
Network.export() only writes the "type" key if it's a ChanType.QUERY; so the config on disk has no "type":
thelounge/server/models/network.ts
Lines 633 to 639 in efd24fd
This causes it to be undefined when loading, which breaks various other checks, and then drops it the next time the config is saved:
thelounge/server/models/network.ts
Lines 627 to 629 in efd24fd