Class RemoteActivity
Typing, read receipts and received presence with other servers: local users' ones go to the room's other servers as EDUs, and theirs are shown here.
Inheritance
RemoteActivity
Assembly: Uniform.Matrix.Server.dll
public sealed class RemoteActivity
Constructors
|
Edit this page
View Source
RemoteActivity(IDbContextFactory<ServerDbContext>, FederationQueue, TypingService, ReceiptService, PresenceService, IOptionsMonitor<ServerOptions>, IOptionsMonitor<FederationOptions>, TimeProvider, ILogger<RemoteActivity>)
Declaration
public RemoteActivity(IDbContextFactory<ServerDbContext> contexts, FederationQueue queue, TypingService typing, ReceiptService receipts, PresenceService presence, IOptionsMonitor<ServerOptions> server, IOptionsMonitor<FederationOptions> options, TimeProvider time, ILogger<RemoteActivity> logger)
Parameters
Fields
|
Edit this page
View Source
How long a remote user shows as typing without a renewal.
Declaration
public static readonly TimeSpan RemoteTypingTimeout
Field Value
Methods
|
Edit this page
View Source
ReceivePresenceAsync(string, JsonObject, CancellationToken)
Show the presence of an m.presence EDU of origin's users.
Declaration
public Task ReceivePresenceAsync(string origin, JsonObject content, CancellationToken cancellationToken)
Parameters
Returns
|
Edit this page
View Source
ReceiveReceiptsAsync(string, JsonObject, CancellationToken)
Store the read receipts of an m.receipt EDU of origin's users.
Declaration
public Task ReceiveReceiptsAsync(string origin, JsonObject content, CancellationToken cancellationToken)
Parameters
Returns
|
Edit this page
View Source
ReceiveTypingAsync(string, JsonObject, CancellationToken)
Show an m.typing EDU of origin's user in a room they are in.
Declaration
public Task ReceiveTypingAsync(string origin, JsonObject content, CancellationToken cancellationToken)
Parameters
Returns
|
Edit this page
View Source
Tell the room's other servers about a local user's public read receipt.
Declaration
public Task SendReceiptAsync(string userId, string roomId, string type, string eventId, string? threadId, CancellationToken cancellationToken)
Parameters
Returns
|
Edit this page
View Source
Tell the room's other servers that a local user started or stopped typing.
Declaration
public Task SendTypingAsync(string userId, string roomId, bool isTyping, CancellationToken cancellationToken)
Parameters
Returns