mirror of
https://github.com/wavetermdev/waveterm.git
synced 2024-12-23 16:58:27 +01:00
remove incognito check for now
This commit is contained in:
parent
f8abfcb563
commit
2a7a5c739c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user