diff --git a/freechat-client/src/auth.js b/freechat-client/src/auth.js
index fde8d69..9fc7b9c 100644
--- a/freechat-client/src/auth.js
+++ b/freechat-client/src/auth.js
@@ -46,7 +46,6 @@ exports.init = async function() {
continue
}
}
- console.log('after init', config)
await ipcRenderer.invoke('config-update', config)
return await ipcRenderer.invoke('config-request')
diff --git a/freechat-client/src/channels.js b/freechat-client/src/channels.js
index aa3bd78..c8df59b 100644
--- a/freechat-client/src/channels.js
+++ b/freechat-client/src/channels.js
@@ -5,98 +5,82 @@ const got = require('got')
const msg = require('./messages.js')
+const ANY_CHANNEL = 0
const VOICE_KIND = 1
const TEXT_KIND = 2
/**
- *
- * @param {String} proto | http/https
- * @param {String} domain | domain of the instance we're looking at
- * @param {Number} port | Should always be the default value of 4536 but other owner
- * @param {Object} params | object with jwt + id fields
+ * Channel button id's have the format of ${hostname}:${channel['name']}
+ * Helper function that literally just pushes out some bs to the DOM
*
- * @note This function fails quietly for the sake of not destroying the UI instantly
- * Errors get logged for now since those are in the debugger anyway but everything else
- * is basically really quiet
+ * @param {String} server.hostname
+ * @param {u16} server.port
+ * @param {String} server.protocol
*
+ * @param {u64} user.id
+ * @param {String} user.jwt
+ *
+ * @param {u64} channel.id
+ * @param {String} channel.name
+ * @param {String} channel.description
+ * @param {i32} channel.kind
*/
-function update_channels_list(proto, hostname, port, params) {
- const url = `${proto}://${hostname}:${port}/channels/list`
+function push(server, user, channel) {
+ $('#channels-list').append(
+ $('
').append(
+ $('').append(
+ $('