fix: sync support private chat content protection

This commit is contained in:
iamxvbaba 2026-07-28 16:22:33 +08:00
parent 74c9249091
commit 037ce017d4
25 changed files with 1395 additions and 36 deletions

View file

@ -0,0 +1,15 @@
package store
import (
"context"
"telesrv/internal/domain"
)
// PrivateNoForwardsStore keeps the canonical pair state and its service-message
// transition in one store transaction. It is optional so unrelated lightweight
// MessageStore test doubles do not need to implement this capability.
type PrivateNoForwardsStore interface {
GetPrivateNoForwards(ctx context.Context, viewerUserID, peerUserID int64) (domain.PrivateNoForwardsState, error)
TogglePrivateNoForwards(ctx context.Context, req domain.TogglePrivateNoForwardsRequest) (domain.TogglePrivateNoForwardsResult, error)
}