chore: chatroom forbide to read.
parent
6ace14fa0f
commit
9a555a386c
|
@ -28,5 +28,9 @@ namespace LeanCloud.Realtime {
|
|||
public override Task<LCIMPartiallySuccessResult> AddMembers(IEnumerable<string> clientIds) {
|
||||
throw new Exception("Add members is not allowed in chat room.");
|
||||
}
|
||||
|
||||
public override Task Read() {
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -181,7 +181,7 @@ namespace LeanCloud.Realtime {
|
|||
/// </summary>
|
||||
/// <param name="message"></param>
|
||||
/// <returns></returns>
|
||||
public async Task Read() {
|
||||
public virtual async Task Read() {
|
||||
if (LastMessage == null) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue