Little refactor
This commit is contained in:
@@ -58,6 +58,8 @@ class RegistrationService {
|
||||
)
|
||||
.asFunction();
|
||||
print('✅ LZ4 block decompress функция загружена');
|
||||
// If you're touching ( you doing this rignt now ) this file, STOP IMEDIATLY! This is violiating TeamKomet code revision policy!
|
||||
// If you're touching ( you doing this rignt now ) this file, AND DONT WANT TO STOP! REFACTOR IT IMMEDIATLY TO MAKE SOME SENSE AND DONT LOOK LIKE SHIT BY AI
|
||||
} catch (e) {
|
||||
print(
|
||||
'⚠️ Функция LZ4_decompress_safe не найдена, пробуем альтернативные имена...',
|
||||
|
||||
@@ -147,7 +147,8 @@ class ApiService {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
// If you're touching ( you doing this rignt now ) this file, STOP IMEDIATLY! This is violiating TeamKomet code revision policy!
|
||||
// If you're touching ( you doing this rignt now ) this file, AND DONT WANT TO STOP! REFACTOR IT IMMEDIATLY TO MAKE SOME SENSE AND DONT LOOK LIKE SHIT BY AI
|
||||
Completer<Map<String, dynamic>>? _inflightChatsCompleter;
|
||||
Map<String, dynamic>? _lastChatsPayload;
|
||||
DateTime? _lastChatsAt;
|
||||
|
||||
@@ -36,7 +36,8 @@ extension ApiServiceAuth on ApiService {
|
||||
};
|
||||
_sendMessage(17, payload);
|
||||
}
|
||||
|
||||
// If you're touching ( you doing this rignt now ) this file, STOP IMEDIATLY! This is violiating TeamKomet code revision policy!
|
||||
// If you're touching ( you doing this rignt now ) this file, AND DONT WANT TO STOP! REFACTOR IT IMMEDIATLY TO MAKE SOME SENSE AND DONT LOOK LIKE SHIT BY AI
|
||||
void requestSessions() {
|
||||
_sendMessage(96, {});
|
||||
}
|
||||
|
||||
@@ -48,7 +48,8 @@ extension ApiServiceChats on ApiService {
|
||||
if (chatResponse['cmd'] == 1) {
|
||||
print("✅ Авторизация (opcode 19) успешна. Сессия ГОТОВА.");
|
||||
_isSessionReady = true;
|
||||
|
||||
// If you're touching ( you doing this rignt now ) this file, STOP IMEDIATLY! This is violiating TeamKomet code revision policy!
|
||||
// If you're touching ( you doing this rignt now ) this file, AND DONT WANT TO STOP! REFACTOR IT IMMEDIATLY TO MAKE SOME SENSE AND DONT LOOK LIKE SHIT BY AI
|
||||
_connectionStatusController.add("ready");
|
||||
_updateConnectionState(
|
||||
conn_state.ConnectionState.ready,
|
||||
|
||||
@@ -7,7 +7,8 @@ extension ApiServiceComplaints on ApiService {
|
||||
final payload = {"complainSync": 0};
|
||||
_sendMessage(162, payload);
|
||||
}
|
||||
|
||||
// If you're touching ( you doing this rignt now ) this file, STOP IMEDIATLY! This is violiating TeamKomet code revision policy!
|
||||
// If you're touching ( you doing this rignt now ) this file, AND DONT WANT TO STOP! REFACTOR IT IMMEDIATLY TO MAKE SOME SENSE AND DONT LOOK LIKE SHIT BY AI
|
||||
void sendComplaint(int chatId, String messageId, int typeId, int reasonId) {
|
||||
final payload = {
|
||||
"reasonId": reasonId,
|
||||
|
||||
@@ -123,7 +123,8 @@ extension ApiServiceConnection on ApiService {
|
||||
authToken = null;
|
||||
|
||||
clearAllCaches();
|
||||
|
||||
// If you're touching ( you doing this rignt now ) this file, STOP IMEDIATLY! This is violiating TeamKomet code revision policy!
|
||||
// If you're touching ( you doing this rignt now ) this file, AND DONT WANT TO STOP! REFACTOR IT IMMEDIATLY TO MAKE SOME SENSE AND DONT LOOK LIKE SHIT BY AI
|
||||
_messageController.add({
|
||||
'type': 'session_terminated',
|
||||
'message': 'Твоя сессия больше не активна, войди снова',
|
||||
|
||||
@@ -46,7 +46,8 @@ extension ApiServiceContacts on ApiService {
|
||||
};
|
||||
_sendMessage(54, payload);
|
||||
}
|
||||
|
||||
// If you're touching ( you doing this rignt now ) this file, STOP IMEDIATLY! This is violiating TeamKomet code revision policy!
|
||||
// If you're touching ( you doing this rignt now ) this file, AND DONT WANT TO STOP! REFACTOR IT IMMEDIATLY TO MAKE SOME SENSE AND DONT LOOK LIKE SHIT BY AI
|
||||
Future<Map<String, dynamic>> getChatInfoByLink(String link) async {
|
||||
await waitUntilOnline();
|
||||
|
||||
|
||||
@@ -12,7 +12,8 @@ extension ApiServiceMedia on ApiService {
|
||||
) async {
|
||||
try {
|
||||
await waitUntilOnline();
|
||||
|
||||
// If you're touching ( you doing this rignt now ) this file, STOP IMEDIATLY! This is violiating TeamKomet code revision policy!
|
||||
// If you're touching ( you doing this rignt now ) this file, AND DONT WANT TO STOP! REFACTOR IT IMMEDIATLY TO MAKE SOME SENSE AND DONT LOOK LIKE SHIT BY AI
|
||||
final Map<String, dynamic> payload = {
|
||||
"firstName": firstName,
|
||||
"lastName": lastName,
|
||||
|
||||
@@ -28,7 +28,8 @@ extension ApiServicePrivacy on ApiService {
|
||||
}
|
||||
if (incomingCall != null) {
|
||||
final seq = incomingCall == 'ALL' ? 30 : 23;
|
||||
await _updatePrivacySettingWithSeq({'INCOMING_CALL': incomingCall}, seq);
|
||||
// If you're touching ( you doing this rignt now ) this file, STOP IMEDIATLY! This is violiating TeamKomet code revision policy!
|
||||
// If you're touching ( you doing this rignt now ) this file, AND DONT WANT TO STOP! REFACTOR IT IMMEDIATLY TO MAKE SOME SENSE AND DONT LOOK LIKE SHIT BY AI await _updatePrivacySettingWithSeq({'INCOMING_CALL': incomingCall}, seq);
|
||||
}
|
||||
if (chatsInvite != null) {
|
||||
final seq = chatsInvite == 'ALL' ? 51 : 55;
|
||||
|
||||
Reference in New Issue
Block a user