mirror of https://github.com/zulip/zulip.git
queue_processors: Document when can remove compatibility code.
This commit is contained in:
parent
c3a8a15bae
commit
260861426c
|
@ -482,7 +482,9 @@ class UserActivityWorker(LoopQueueProcessingWorker):
|
||||||
# This is for compatibility with older events still stuck in the queue,
|
# This is for compatibility with older events still stuck in the queue,
|
||||||
# that used the client name in event["client"] instead of having
|
# that used the client name in event["client"] instead of having
|
||||||
# event["client_id"] directly.
|
# event["client_id"] directly.
|
||||||
# TODO: This can be deleted for release >= 4.0.
|
#
|
||||||
|
# TODO/compatability: We can delete this once it is no
|
||||||
|
# longer possible to directly upgrade from 2.1 to master.
|
||||||
if event["client"] not in self.client_id_map:
|
if event["client"] not in self.client_id_map:
|
||||||
client = get_client(event["client"])
|
client = get_client(event["client"])
|
||||||
self.client_id_map[event["client"]] = client.id
|
self.client_id_map[event["client"]] = client.id
|
||||||
|
|
Loading…
Reference in New Issue