Skip to content

Latest commit

 

History

History
37 lines (27 loc) · 1.22 KB

teamgram-android.md

File metadata and controls

37 lines (27 loc) · 1.22 KB

teamgram-android

Install

patch

Default connect to Teamgram Test Server.

If you want to connect to your own server, you can modify the following code:

ConnectionsManager.cpp#L1691

https://github.com/teamgram/teamgram-android/blob/teamgram/TMessagesProj/jni/tgnet/ConnectionsManager.cpp#L1691
void ConnectionsManager::initDatacenters() {
    Datacenter *datacenter;
    if (!testBackend) {
        if (datacenters.find(1) == datacenters.end()) {
            datacenter = new Datacenter(instanceNum, 1);
            datacenter->addAddressAndPort("XXX.XXX.XXX.XXX", 10443, 0, "");
            datacenters[1] = datacenter;
        }
    } else {
        if (datacenters.find(1) == datacenters.end()) {
            datacenter = new Datacenter(instanceNum, 1);
            datacenter->addAddressAndPort("XXX.XXX.XXX.XXX", 10443, 0, "");
            datacenters[1] = datacenter;
        }
    }
}