Fix tgp version displayed as NULL in sessions

Set telegram-purple version in app data, to make the correct version
show up in the session dialogue.
This commit is contained in:
mjentsch 2016-01-24 16:11:33 +01:00
parent 9208d9b1e9
commit 68b71dae70

View file

@ -594,6 +594,7 @@ static void tgprpl_login (PurpleAccount * acct) {
tgl_set_timer_methods (TLS, &tgp_timers);
tgl_set_callback (TLS, &tgp_callback);
tgl_register_app_id (TLS, TGP_APP_ID, TGP_APP_HASH);
tgl_set_app_version (TLS, PACKAGE_VERSION);
tgl_init (TLS);
if (! tgp_startswith (purple_account_get_username (acct), "+")) {