forked from distok/cutthecord
Ave Ozkal
c8c7520853
Had to rewrite spoilerimg related parts of supplemental as they moved okhttp3 code to discord's own codebase. However, one benefit of this for us is that it now shows SPOILER_ while you're uploading too.
34 lines
1.6 KiB
Diff
34 lines
1.6 KiB
Diff
diff -crB from/smali/com/discord/gateway/GatewaySocket.smali to/smali/com/discord/gateway/GatewaySocket.smali
|
|
*** from/smali/com/discord/gateway/GatewaySocket.smali 2019-11-26 10:48:45.866158214 +0300
|
|
--- to/smali/com/discord/gateway/GatewaySocket.smali 2019-11-26 10:49:53.676457609 +0300
|
|
***************
|
|
*** 1050,1056 ****
|
|
|
|
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
! const-string p1, "/?encoding=json&v=6&compress=zlib-stream"
|
|
|
|
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
--- 1050,1056 ----
|
|
|
|
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
! const-string p1, "/?encoding=json&v=6"
|
|
|
|
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
diff -crB from/smali/com/discord/gateway/io/OutgoingPayload$Identify.smali to/smali/com/discord/gateway/io/OutgoingPayload$Identify.smali
|
|
*** from/smali/com/discord/gateway/io/OutgoingPayload$Identify.smali 2019-11-26 10:48:45.869491562 +0300
|
|
--- to/smali/com/discord/gateway/io/OutgoingPayload$Identify.smali 2019-11-26 10:49:53.676457609 +0300
|
|
***************
|
|
*** 66,71 ****
|
|
--- 66,73 ----
|
|
|
|
iput p2, p0, Lcom/discord/gateway/io/OutgoingPayload$Identify;->large_threshold:I
|
|
|
|
+ const/4 p3, 0x0
|
|
+
|
|
iput-boolean p3, p0, Lcom/discord/gateway/io/OutgoingPayload$Identify;->compress:Z
|
|
|
|
iput-object p4, p0, Lcom/discord/gateway/io/OutgoingPayload$Identify;->properties:Ljava/util/Map;
|