Add channel search and subscription
This commit is contained in:
@@ -93,6 +93,16 @@ public sealed class MaxBridgeSyncService(
|
||||
}
|
||||
}
|
||||
|
||||
public async Task<int> ApplyJoinedChannelAsync(MaxChatUpdate update, CancellationToken cancellationToken)
|
||||
{
|
||||
return await ApplyUpdatesAsync(
|
||||
[update],
|
||||
incrementUnread: false,
|
||||
sendPushNotifications: false,
|
||||
cancellationToken,
|
||||
allowGenericMediaHistoryFetch: false);
|
||||
}
|
||||
|
||||
private async Task<int> ApplyUpdatesAsync(
|
||||
IReadOnlyList<MaxChatUpdate> updates,
|
||||
bool incrementUnread,
|
||||
|
||||
Reference in New Issue
Block a user