c82b273155
Previously, the getAvailableReactions function was only called with a logged in client. However, now that it is called in the GetCapabilities call, the client is no longer guaranteed to be logged in. This was causing an NPE due to the (*TelegramClient).client being nil. This commit makes the getAvailableReactions function not panic when the client is not logged in. Signed-off-by: Sumner Evans <sumner.evans@automattic.com>