mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-17 13:05:32 +09:00
fix(push): stop pushes for read, silent and muted messages (#3033)
This commit is contained in:
1 parent
9908518f5b
commit
b30ea361d3
45 files changed
+3393
-268
No files matched your search
@@ -205,6 +205,11 @@ export const RpcRequest = z.discriminatedUnion('type', [
|
||||
channel_id: SnowflakeType.describe('ID of the DM channel'),
|
||||
user_id: SnowflakeType.describe('ID of the user requesting the channel'),
|
||||
}),
|
||||
z.object({
|
||||
type: z.literal('get_read_state').describe('Request type for fetching the read state of one channel'),
|
||||
user_id: SnowflakeType.describe('ID of the user who owns the read state'),
|
||||
channel_id: SnowflakeType.describe('ID of the channel'),
|
||||
}),
|
||||
z.object({
|
||||
type: z.literal('validate_custom_status').describe('Request type for validating a custom status'),
|
||||
user_id: SnowflakeType.describe('ID of the user'),
|
||||
@@ -515,6 +520,14 @@ export const RpcResponse = z.discriminatedUnion('type', [
|
||||
})
|
||||
.describe('DM channel result'),
|
||||
}),
|
||||
z.object({
|
||||
type: z.literal('get_read_state').describe('Response type for a channel read state'),
|
||||
data: z
|
||||
.object({
|
||||
last_message_id: SnowflakeStringType.nullable().describe('ID of the last read message, or null if none'),
|
||||
})
|
||||
.describe('Channel read state result'),
|
||||
}),
|
||||
z.object({
|
||||
type: z.literal('get_gateway_rollout_config').describe('Response type for gateway rollout configuration'),
|
||||
data: z
|
||||
|
||||
Reference in new issue
Block a user