MCPcopy Create free account
hub / github.com/TelegramMessenger/tgcalls / appendReceivedMessage

Method appendReceivedMessage

tgcalls/EncryptedConnection.cpp:656–669  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

654}
655
656void EncryptedConnection::appendReceivedMessage(
657 absl::optional<DecryptedPacket> &to,
658 Message &&message,
659 uint32_t incomingSeq) {
660 auto decrypted = DecryptedMessage{
661 std::move(message),
662 CounterFromSeq(incomingSeq)
663 };
664 if (to) {
665 to->additional.push_back(std::move(decrypted));
666 } else {
667 to = DecryptedPacket{ std::move(decrypted) };
668 }
669}
670
671void EncryptedConnection::appendReceivedRawMessage(
672 absl::optional<DecryptedRawPacket> &to,

Callers

nothing calls this directly

Calls 1

CounterFromSeqFunction · 0.85

Tested by

no test coverage detected