@@ -568,9 +568,8 @@ class StreamChatClient {
|
||||
/// Requests channels with a given query.
|
||||
Stream<List<Channel>> queryChannels({
|
||||
Filter? filter,
|
||||
@Deprecated('''
|
||||
sort has been deprecated.
|
||||
Please use channelStateSort instead.''') List<SortOption<ChannelModel>>? sort,
|
||||
@Deprecated('Use channelStateSort instead.')
|
||||
List<SortOption<ChannelModel>>? sort,
|
||||
List<SortOption<ChannelState>>? channelStateSort,
|
||||
bool state = true,
|
||||
bool watch = true,
|
||||
@@ -730,7 +729,8 @@ class StreamChatClient {
|
||||
Filter? filter,
|
||||
@Deprecated('''
|
||||
sort has been deprecated.
|
||||
Please use channelStateSort instead.''') List<SortOption<ChannelModel>>? sort,
|
||||
Please use channelStateSort instead.''')
|
||||
List<SortOption<ChannelModel>>? sort,
|
||||
List<SortOption<ChannelState>>? channelStateSort,
|
||||
PaginationParams paginationParams = const PaginationParams(),
|
||||
}) async {
|
||||
@@ -1555,12 +1555,16 @@ class ClientState {
|
||||
_eventsSubscription!
|
||||
..add(_client
|
||||
.on()
|
||||
.where((event) =>
|
||||
event.me != null && event.type != EventType.healthCheck)
|
||||
.where((event) {
|
||||
if (event.type == EventType.notificationMutesUpdated) {
|
||||
print("notificationMutesUpdated");
|
||||
}
|
||||
return event.me != null && event.type != EventType.healthCheck;
|
||||
})
|
||||
.map((e) => e.me!)
|
||||
.listen((user) {
|
||||
currentUser = currentUser?.merge(user) ?? user;
|
||||
}))
|
||||
currentUser = currentUser?.merge(user) ?? user;
|
||||
}))
|
||||
..add(_client
|
||||
.on()
|
||||
.map((event) => event.unreadChannels)
|
||||
|
||||
@@ -102,9 +102,8 @@ abstract class ChatPersistenceClient {
|
||||
/// for filtering out states.
|
||||
Future<List<ChannelState>> getChannelStates({
|
||||
Filter? filter,
|
||||
@Deprecated('''
|
||||
sort has been deprecated.
|
||||
Please use channelStateSort instead.''') List<SortOption<ChannelModel>>? sort,
|
||||
@Deprecated('Use channelStateSort instead.')
|
||||
List<SortOption<ChannelModel>>? sort,
|
||||
List<SortOption<ChannelState>>? channelStateSort,
|
||||
PaginationParams? paginationParams,
|
||||
});
|
||||
|
||||
@@ -62,9 +62,8 @@ class TestPersistenceClient extends ChatPersistenceClient {
|
||||
@override
|
||||
Future<List<ChannelState>> getChannelStates(
|
||||
{Filter? filter,
|
||||
@Deprecated('''
|
||||
sort has been deprecated.
|
||||
Please use channelStateSort instead.''') List<SortOption<ChannelModel>>? sort,
|
||||
@Deprecated('Use channelStateSort instead.')
|
||||
List<SortOption<ChannelModel>>? sort,
|
||||
List<SortOption<ChannelState>>? channelStateSort,
|
||||
PaginationParams? paginationParams}) =>
|
||||
throw UnimplementedError();
|
||||
|
||||
@@ -83,7 +83,7 @@ abstract class Translations {
|
||||
/// in the [StreamMessageListView]
|
||||
String unreadMessagesSeparatorText(
|
||||
@Deprecated('unreadCount is not used anymore and will be removed ')
|
||||
int unreadCount,
|
||||
int unreadCount,
|
||||
);
|
||||
|
||||
/// The label for "connected" in [StreamConnectionStatusBuilder]
|
||||
|
||||
@@ -23,7 +23,7 @@ class StreamMessageThemeData with Diagnosticable {
|
||||
this.avatarTheme,
|
||||
this.createdAtStyle,
|
||||
@Deprecated('Use urlAttachmentBackgroundColor instead')
|
||||
Color? linkBackgroundColor,
|
||||
Color? linkBackgroundColor,
|
||||
Color? urlAttachmentBackgroundColor,
|
||||
this.urlAttachmentHostStyle,
|
||||
this.urlAttachmentTitleStyle,
|
||||
@@ -102,7 +102,7 @@ class StreamMessageThemeData with Diagnosticable {
|
||||
Color? reactionsBorderColor,
|
||||
Color? reactionsMaskColor,
|
||||
@Deprecated('Use urlAttachmentBackgroundColor instead')
|
||||
Color? linkBackgroundColor,
|
||||
Color? linkBackgroundColor,
|
||||
Color? urlAttachmentBackgroundColor,
|
||||
TextStyle? urlAttachmentHostStyle,
|
||||
TextStyle? urlAttachmentTitleStyle,
|
||||
|
||||
@@ -251,9 +251,8 @@ class StreamChatPersistenceClient extends ChatPersistenceClient {
|
||||
@override
|
||||
Future<List<ChannelState>> getChannelStates({
|
||||
Filter? filter,
|
||||
@Deprecated('''
|
||||
sort has been deprecated.
|
||||
Please use channelStateSort instead.''') List<SortOption<ChannelModel>>? sort,
|
||||
@Deprecated('Use channelStateSort instead.')
|
||||
List<SortOption<ChannelModel>>? sort,
|
||||
List<SortOption<ChannelState>>? channelStateSort,
|
||||
PaginationParams? paginationParams,
|
||||
}) async {
|
||||
|
||||
Reference in New Issue
Block a user