Skip to content

Commit

Permalink
Recognition for legacy protocols
Browse files Browse the repository at this point in the history
Fixes #123
  • Loading branch information
Aizistral committed Nov 17, 2022
1 parent 82d46ed commit b276093
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ public void onSecureChatCheck(CallbackInfoReturnable<Boolean> info) {

@Override
public boolean preventsChatReports() {
var self = (ServerStatus) (Object) this;

if (self.getVersion() != null && self.getVersion().getProtocol() < 759)
return true;

return this.preventsChatReports;
}

Expand Down

0 comments on commit b276093

Please sign in to comment.