From 2a7a5c739c695ea0a64dfc592d8ad717fd6d2917 Mon Sep 17 00:00:00 2001 From: sawka Date: Mon, 13 Mar 2023 15:54:35 -0700 Subject: [PATCH] remove incognito check for now --- pkg/sstore/dbops.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/pkg/sstore/dbops.go b/pkg/sstore/dbops.go index 885780eb..7e3a1eaf 100644 --- a/pkg/sstore/dbops.go +++ b/pkg/sstore/dbops.go @@ -196,13 +196,7 @@ func InsertHistoryItem(ctx context.Context, hitem *HistoryItemType) error { } func IsIncognitoScreen(ctx context.Context, sessionId string, screenId string) (bool, error) { - var rtn bool - txErr := WithTx(ctx, func(tx *TxWrap) error { - query := `SELECT incognito FROM screen WHERE sessionid = ? AND screenid = ?` - tx.Get(&rtn, query, sessionId, screenId) - return nil - }) - return rtn, txErr + return false, nil } const HistoryQueryChunkSize = 1000