Move instances of Client.leaveChannel() in components to an action (#5131)
* Move instances of Client.leaveChannel() in components to an action * create isFavoriteChannelId
Этот коммит содержится в:
коммит произвёл
Christopher Speller
родитель
e8d7701b60
Коммит
6097f93704
@@ -43,6 +43,10 @@ export function isFavoriteChannel(channel) {
|
||||
return PreferenceStore.getBool(Preferences.CATEGORY_FAVORITE_CHANNEL, channel.id);
|
||||
}
|
||||
|
||||
export function isFavoriteChannelId(channelId) {
|
||||
return PreferenceStore.getBool(Preferences.CATEGORY_FAVORITE_CHANNEL, channelId);
|
||||
}
|
||||
|
||||
export function isNotDeletedChannel(channel) {
|
||||
return channel.delete_at === 0;
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user