mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-30 13:35:04 +02:00
Readonly fixes (#9407)
Signed-off-by: Anton Alexeyev <alexeyev.anton@gmail.com>
This commit is contained in:
@@ -358,7 +358,7 @@ export async function pushInboxNotifications (
|
||||
|
||||
const notificationData = {
|
||||
user: receiver.account,
|
||||
isViewed: false,
|
||||
isViewed: receiver.role === 'GUEST',
|
||||
docNotifyContext: docNotifyContextId,
|
||||
archived: false,
|
||||
objectId,
|
||||
|
||||
@@ -221,7 +221,6 @@ export async function isShouldNotifyTx (
|
||||
notificationControl: NotificationProviderControl,
|
||||
docUpdateMessage?: DocUpdateMessage
|
||||
): Promise<NotifyResult> {
|
||||
if (receiver.role === 'GUEST') return new Map<Ref<NotificationProvider>, NotificationType[]>()
|
||||
const types = getMatchedTypes(control, tx, isOwn, isSpace, docUpdateMessage?.attributeUpdates?.attrKey)
|
||||
const modifiedByPersonId = tx.modifiedBy
|
||||
const result = new Map<Ref<NotificationProvider>, NotificationType[]>()
|
||||
|
||||
Reference in New Issue
Block a user