Revert "test transmission"

This reverts commit 3ad99f860a.
This commit is contained in:
Bunny67
2020-08-01 14:18:36 +03:00
parent fde12ef78f
commit 9eedee8703
+12 -4
View File
@@ -654,7 +654,11 @@ function TableToString(inTable, forChat)
end
end
local encoded = "!WA:2!"
encoded = encoded .. LibDeflate:EncodeForPrint(compressed)
if(forChat) then
encoded = encoded .. LibDeflate:EncodeForPrint(compressed)
else
encoded = encoded .. LibDeflate:EncodeForWoWAddonChannel(compressed)
end
return encoded
end
@@ -672,10 +676,14 @@ function StringToTable(inString, fromChat)
end
local decoded
if encodeVersion > 0 then
decoded = LibDeflate:DecodeForPrint(encoded)
if(fromChat) then
if encodeVersion > 0 then
decoded = LibDeflate:DecodeForPrint(encoded)
else
decoded = decodeB64(encoded)
end
else
decoded = decodeB64(encoded)
decoded = LibDeflate:DecodeForWoWAddonChannel(encoded)
end
if not decoded then