mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-27 13:55:54 +08:00
feat: pm: clear unread
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -51,6 +51,7 @@ class GrpcUrl {
|
||||
static const sendMsg = '$im/SendMsg';
|
||||
static const shareList = '$im/ShareList';
|
||||
static const sessionMain = '$im2/SessionMain';
|
||||
static const clearUnread = '$im2/ClearUnread';
|
||||
}
|
||||
|
||||
class GrpcRepo {
|
||||
@@ -382,4 +383,18 @@ class GrpcRepo {
|
||||
SessionMainReply.fromBuffer,
|
||||
);
|
||||
}
|
||||
|
||||
static Future clearUnread({
|
||||
SessionPageType? pageType,
|
||||
SessionId? sessionId,
|
||||
}) async {
|
||||
return await _request(
|
||||
GrpcUrl.clearUnread,
|
||||
ClearUnreadReq(
|
||||
pageType: pageType,
|
||||
sessionId: sessionId,
|
||||
),
|
||||
ClearUnreadReply.fromBuffer,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user