Fix AlbumHack in combination with events.Raw (#1555)

This commit is contained in:
apepenkov 2020-09-10 17:25:44 +03:00 committed by GitHub
parent 1afb5b95e3
commit 2a114917f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -467,6 +467,8 @@ class UpdateMethods:
# the name of speed; we don't want to make it worse for all updates
# just because albums may need it.
for builder, callback in self._event_builders:
if isinstance(builder, events.Raw):
continue
if not isinstance(event, builder.Event):
continue