@ai-matrx/messaging 0.15.78 → 0.15.81
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/react.cjs +1 -1
- package/dist/react.cjs.map +1 -1
- package/dist/react.js +1 -1
- package/dist/react.js.map +1 -1
- package/package.json +3 -3
package/dist/react.cjs
CHANGED
|
@@ -2112,7 +2112,7 @@ function createMessagingRepository(options) {
|
|
|
2112
2112
|
}
|
|
2113
2113
|
async function updateLiveParticipant(operation, conversationId, userId, patch) {
|
|
2114
2114
|
const destination = await organizationOfExisting(conversationId);
|
|
2115
|
-
const { data, error } = await db().from(TABLES.participants).update({ ...patch, organization_id: destination }).eq("conversation_id", conversationId).eq("user_id", userId).
|
|
2115
|
+
const { data, error } = await db().from(TABLES.participants).update({ ...patch, organization_id: destination }).eq("conversation_id", conversationId).eq("user_id", userId).is("deleted_at", null).select("id").maybeSingle();
|
|
2116
2116
|
if (error !== null) throw normalizeMessagingError(error, operation);
|
|
2117
2117
|
if (data === null) {
|
|
2118
2118
|
throw writeNotApplied(operation, "participant update returned no live row");
|