feat: 实现实时匿名会话
This commit is contained in:
@@ -298,6 +298,7 @@ describe("database authority constraints", () => {
|
||||
data: {
|
||||
conversationId: conversation.id,
|
||||
senderId: author.id,
|
||||
senderPublicId: author.id,
|
||||
clientMsgId: "msg",
|
||||
seq: 1n,
|
||||
contentText: "hello",
|
||||
@@ -326,6 +327,7 @@ describe("database authority constraints", () => {
|
||||
data: {
|
||||
conversationId: conversation.id,
|
||||
senderId: author.id,
|
||||
senderPublicId: author.id,
|
||||
clientMsgId: "duplicate-client-id",
|
||||
seq: 1n,
|
||||
contentText: "first",
|
||||
@@ -338,6 +340,7 @@ describe("database authority constraints", () => {
|
||||
data: {
|
||||
conversationId: conversation.id,
|
||||
senderId: author.id,
|
||||
senderPublicId: author.id,
|
||||
clientMsgId: "duplicate-client-id",
|
||||
seq: 2n,
|
||||
contentText: "second",
|
||||
@@ -358,6 +361,7 @@ describe("database authority constraints", () => {
|
||||
data: {
|
||||
conversationId: conversation.id,
|
||||
senderId: author.id,
|
||||
senderPublicId: author.id,
|
||||
clientMsgId: "first-client-id",
|
||||
seq: 1n,
|
||||
contentText: "first",
|
||||
@@ -370,6 +374,7 @@ describe("database authority constraints", () => {
|
||||
data: {
|
||||
conversationId: conversation.id,
|
||||
senderId: author.id,
|
||||
senderPublicId: author.id,
|
||||
clientMsgId: "second-client-id",
|
||||
seq: 1n,
|
||||
contentText: "second",
|
||||
@@ -426,6 +431,7 @@ describe("database authority constraints", () => {
|
||||
data: {
|
||||
conversationId: conversation.id,
|
||||
senderId: author.id,
|
||||
senderPublicId: author.id,
|
||||
clientMsgId: "zero",
|
||||
seq: 0n,
|
||||
contentText: "x",
|
||||
|
||||
Reference in New Issue
Block a user