diff --git a/lib/MatterbridgeManager.php b/lib/MatterbridgeManager.php index 82c813706af..7a243ccf1f3 100644 --- a/lib/MatterbridgeManager.php +++ b/lib/MatterbridgeManager.php @@ -496,19 +496,11 @@ private function generateConfig(array $bridge): string { $content .= '[[gateway.inout]]' . "\n"; $content .= sprintf(' account = "%s.%s"', $type, $k) . "\n"; - if (in_array($type, ['zulip', 'discord', 'xmpp', 'irc', 'slack', 'rocketchat', 'mattermost', 'matrix', 'nctalk'])) { - $content .= sprintf(' channel = "%s"', $part['channel']) . "\n"; - if ($type === 'irc' && $part['channelpassword']) { - $content .= sprintf(' options = { key = "%s" }', $part['channelpassword']) . "\n"; - } - $content .= "\n"; - } elseif ($type === 'msteams') { - $content .= sprintf(' threadId = "%s"', $part['threadid']) . "\n\n"; - } elseif ($type === 'telegram') { - $content .= sprintf(' channel = "%s"', $part['channel']) . "\n\n"; - } elseif ($type === 'steam') { - $content .= sprintf(' chatid = "%s"', $part['chatid']) . "\n\n"; + $content .= sprintf(' channel = "%s"', $part['channel']) . "\n"; + if ($type === 'irc' && $part['channelpassword']) { + $content .= sprintf(' options = { key = "%s" }', $part['channelpassword']) . "\n"; } + $content .= "\n"; } return $content; diff --git a/src/components/RightSidebar/Matterbridge/MatterbridgeSettings.vue b/src/components/RightSidebar/Matterbridge/MatterbridgeSettings.vue index d86332ac584..6845c1f2bd1 100644 --- a/src/components/RightSidebar/Matterbridge/MatterbridgeSettings.vue +++ b/src/components/RightSidebar/Matterbridge/MatterbridgeSettings.vue @@ -320,7 +320,7 @@ export default { placeholder: t('spreed', 'Password'), icon: 'icon-category-auth', }, - chatid: { + channel: { type: 'text', placeholder: t('spreed', 'Chat ID'), icon: 'icon-group', @@ -399,7 +399,7 @@ export default { placeholder: t('spreed', 'Team ID'), icon: 'icon-category-auth', }, - threadid: { + channel: { type: 'text', placeholder: t('spreed', 'Thread ID'), icon: 'icon-group',