mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-29 10:17:30 +08:00
diffrentiate between receiver and initiator block
This commit is contained in:
parent
9323ef7979
commit
0099b03dd8
1 changed files with 5 additions and 1 deletions
|
|
@ -88,7 +88,11 @@ export async function create(
|
|||
} else if (existing?.status === "pending") {
|
||||
message = "Connection request already sent";
|
||||
} else if (existing?.status === "blocked") {
|
||||
message = "Connection is blocked";
|
||||
if (existing.initiatorUid === initiator.uid) {
|
||||
message = "Connection blocked by initiator";
|
||||
} else {
|
||||
message = "Connection blocked by receiver";
|
||||
}
|
||||
} else {
|
||||
message = "Duplicate connection";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue