Skip to content

Commit

Permalink
refs #4719 fix telegram channel config key
Browse files Browse the repository at this point in the history
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
  • Loading branch information
Julien Veyssier authored and backportbot[bot] committed Dec 9, 2020
1 parent bb9eb6f commit 9d8a561
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion lib/MatterbridgeManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,9 @@ private function generateConfig(array $bridge): string {
$content .= "\n";
} elseif ($type === 'msteams') {
$content .= sprintf(' threadId = "%s"', $part['threadid']) . "\n\n";
} elseif (in_array($type, ['telegram', 'steam'])) {
} elseif ($type === 'telegram') {
$content .= sprintf(' channel = "%s"', $part['channel']) . "\n\n";
} elseif ($type === 'steam') {
$content .= sprintf(' chatid = "%s"', $part['chatid']) . "\n\n";
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -299,9 +299,9 @@ export default {
placeholder: t('spreed', 'API token'),
icon: 'icon-category-auth',
},
chatid: {
channel: {
type: 'text',
placeholder: t('spreed', 'Chat ID'),
placeholder: t('spreed', 'Channel'),
icon: 'icon-group',
},
},
Expand Down

0 comments on commit 9d8a561

Please sign in to comment.