fix(llc): use channel partial update for slowmode
This commit is contained in:
@@ -834,7 +834,7 @@ class Channel {
|
||||
}
|
||||
|
||||
/// Enable slow mode
|
||||
Future<UpdateChannelResponse> enableSlowMode({
|
||||
Future<PartialUpdateChannelResponse> enableSlowMode({
|
||||
required int cooldownInterval,
|
||||
}) async {
|
||||
_checkInitialized();
|
||||
@@ -842,7 +842,7 @@ class Channel {
|
||||
}
|
||||
|
||||
/// Disable slow mode
|
||||
Future<UpdateChannelResponse> disableSlowMode() async {
|
||||
Future<PartialUpdateChannelResponse> disableSlowMode() async {
|
||||
_checkInitialized();
|
||||
return _client.disableSlowdown(id!, type);
|
||||
}
|
||||
|
||||
@@ -1248,7 +1248,7 @@ class StreamChatClient {
|
||||
);
|
||||
|
||||
/// Enables slow mode
|
||||
Future<UpdateChannelResponse> enableSlowdown(
|
||||
Future<PartialUpdateChannelResponse> enableSlowdown(
|
||||
String channelId,
|
||||
String channelType,
|
||||
int cooldown,
|
||||
@@ -1260,7 +1260,7 @@ class StreamChatClient {
|
||||
);
|
||||
|
||||
/// Disables slow mode
|
||||
Future<UpdateChannelResponse> disableSlowdown(
|
||||
Future<PartialUpdateChannelResponse> disableSlowdown(
|
||||
String channelId,
|
||||
String channelType,
|
||||
) async =>
|
||||
|
||||
Reference in New Issue
Block a user