From d79863a94153f452d9cd059a32bab8076a154e96 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 4 Jan 2023 15:51:20 +0300 Subject: Facebook: hidden setting added (Added STRING) for people who want to see smth different in the session list --- protocols/Facebook/src/mqtt.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'protocols/Facebook') diff --git a/protocols/Facebook/src/mqtt.cpp b/protocols/Facebook/src/mqtt.cpp index b7fbe0a3bd..ff4f6eb21b 100644 --- a/protocols/Facebook/src/mqtt.cpp +++ b/protocols/Facebook/src/mqtt.cpp @@ -203,6 +203,9 @@ void FacebookProto::MqttSend(const MqttMessage &payload) void FacebookProto::MqttLogin() { + // Hidden setting!! Agent = how Miranda would be visible in the session list + ptrA pszAgent(getStringA("Agent", FB_API_MQTT_AGENT)); + uint8_t zeroByte = 0; Utils_GetRandom(&m_iMqttId, sizeof(m_iMqttId) / 2); @@ -216,7 +219,7 @@ void FacebookProto::MqttLogin() thrift.writeInt64(m_uid); thrift.writeField(FB_THRIFT_TYPE_STRING); // User agent - thrift << FB_API_MQTT_AGENT; + thrift << pszAgent; thrift.writeField(FB_THRIFT_TYPE_I64); thrift.writeInt64(23); -- cgit v1.2.3