mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-19 05:55:34 +09:00
fix(guild): render activity log entries deterministically (#2766)
This commit is contained in:
135 files changed
+75869
-2708
No files matched your search
@@ -177,6 +177,13 @@ export class GuildMemberOperationsService {
|
||||
connectionId: string | null;
|
||||
auditLogReason?: string | null;
|
||||
}): Promise<void> {
|
||||
if (
|
||||
params.previousChannelId !== null &&
|
||||
params.newChannelId !== null &&
|
||||
params.previousChannelId === params.newChannelId.toString()
|
||||
) {
|
||||
return;
|
||||
}
|
||||
const action = params.newChannelId === null ? AuditLogActionType.MEMBER_DISCONNECT : AuditLogActionType.MEMBER_MOVE;
|
||||
const previousSnapshot = params.previousChannelId !== null ? {channel_id: params.previousChannelId} : null;
|
||||
const nextSnapshot = params.newChannelId !== null ? {channel_id: params.newChannelId.toString()} : null;
|
||||
|
||||
Reference in new issue
Block a user