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