channelTemplates method
listTemplates: the templates of channelId when principalId sees it.
Implementation
List<JsonMap> channelTemplates(String principalId, String channelId) {
if (!seesChannel(principalId, channelId)) {
throw const FakeProblem(404, 'not_found');
}
return [
for (final t in templates.values)
if (t['scope'] == 'channel' && t['channel_id'] == channelId) t,
];
}