mirror of
https://github.com/trezor/trezor-suite.git
synced 2026-02-20 00:33:07 +01:00
fixup! feat(protocol): add piggybackAck support
This commit is contained in:
@@ -370,7 +370,9 @@ export abstract class AbstractApiTransport extends AbstractTransport {
|
||||
signal,
|
||||
logger: this.logger,
|
||||
});
|
||||
thpState?.sync('send', name);
|
||||
if (thpState && !thpState.isPiggybackAckEnabled) {
|
||||
thpState.sync('send', name);
|
||||
}
|
||||
} else {
|
||||
sendResult = await sendChunks(chunks, apiWrite);
|
||||
}
|
||||
|
||||
@@ -299,8 +299,8 @@ export class BridgeTransport extends AbstractTransport {
|
||||
if (!response.success) {
|
||||
return response;
|
||||
}
|
||||
if (protocol.name === 'v2') {
|
||||
thpState?.sync('send', name);
|
||||
if (protocol.name === 'v2' && thpState && !thpState.isPiggybackAckEnabled) {
|
||||
thpState.sync('send', name);
|
||||
}
|
||||
|
||||
return this.success(undefined);
|
||||
|
||||
Reference in New Issue
Block a user