chat-view: join chat after acquiring metadata

hark-chat-hook scries for the group in order to determine whether the
chat should be automatically watched for notifications. Therefore, if we
are joining a chat, we should acquire the metadata before joining the
chat. This is to ensure that the scry works correctly.

Fixes #3946
This commit is contained in:
Liam Fitzgerald 2020-11-18 14:12:13 +10:00
parent 4a1cd48ef5
commit 7a1ff3ce2a
No known key found for this signature in database
GPG Key ID: D390E12C61D1CFFB

View File

@ -488,8 +488,8 @@
(en-path:resource rid)
?> ?=(^ path)
:~ (group-pull-hook-poke %add ship rid)
(chat-hook-poke %add-synced ship t.path ask-history)
(metadata-hook-poke %add-synced ship path)
(chat-hook-poke %add-synced ship t.path ask-history)
==
::
++ diff-chat-update