2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Support reading me_url_prefix from config.

The default value 'https://t.me' can be overriden from server config.
This commit is contained in:
John Preston
2017-03-10 20:25:43 +03:00
parent 70b6335b11
commit 5bb68cfd8f
16 changed files with 74 additions and 30 deletions

View File

@@ -657,6 +657,7 @@ struct Data {
int32 EditTimeLimit = 172800;
int32 StickersRecentLimit = 30;
int32 PinnedDialogsCountMax = 5;
QString InternalLinksDomain = qsl("https://t.me/");
HiddenPinnedMessagesMap HiddenPinnedMessages;
@@ -779,6 +780,7 @@ DefineVar(Global, int32, SavedGifsLimit);
DefineVar(Global, int32, EditTimeLimit);
DefineVar(Global, int32, StickersRecentLimit);
DefineVar(Global, int32, PinnedDialogsCountMax);
DefineVar(Global, QString, InternalLinksDomain);
DefineVar(Global, HiddenPinnedMessagesMap, HiddenPinnedMessages);