Оптимизация размера лог-файла
This commit is contained in:
@@ -328,7 +328,6 @@ export function DialogProvider(props: DialogProviderProps) {
|
|||||||
* Обработчик чтения групповых сообщений
|
* Обработчик чтения групповых сообщений
|
||||||
*/
|
*/
|
||||||
usePacket(0x07, async (packet : PacketRead) => {
|
usePacket(0x07, async (packet : PacketRead) => {
|
||||||
info("Read packet received in dialog provider");
|
|
||||||
const fromPublicKey = packet.getFromPublicKey();
|
const fromPublicKey = packet.getFromPublicKey();
|
||||||
if(fromPublicKey == publicKey){
|
if(fromPublicKey == publicKey){
|
||||||
/**
|
/**
|
||||||
@@ -388,7 +387,6 @@ export function DialogProvider(props: DialogProviderProps) {
|
|||||||
}, [publicKey]);
|
}, [publicKey]);
|
||||||
|
|
||||||
usePacket(0x08, async (packet : PacketDelivery) => {
|
usePacket(0x08, async (packet : PacketDelivery) => {
|
||||||
info("Delivery packet received in dialog provider");
|
|
||||||
const fromPublicKey = packet.getToPublicKey();
|
const fromPublicKey = packet.getToPublicKey();
|
||||||
const messageId = packet.getMessageId();
|
const messageId = packet.getMessageId();
|
||||||
if(fromPublicKey != props.dialog){
|
if(fromPublicKey != props.dialog){
|
||||||
@@ -514,7 +512,6 @@ export function DialogProvider(props: DialogProviderProps) {
|
|||||||
error("Message dropped because group key not found for group " + toPublicKey);
|
error("Message dropped because group key not found for group " + toPublicKey);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
info("New group message packet received from " + fromPublicKey);
|
|
||||||
|
|
||||||
let decryptedContent = '';
|
let decryptedContent = '';
|
||||||
|
|
||||||
@@ -673,7 +670,6 @@ export function DialogProvider(props: DialogProviderProps) {
|
|||||||
error("Message dropped because group key not found for group " + toPublicKey);
|
error("Message dropped because group key not found for group " + toPublicKey);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
info("New group message packet received from " + fromPublicKey);
|
|
||||||
|
|
||||||
let decryptedContent = '';
|
let decryptedContent = '';
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user