a4e9947d42
- Added option to enable/disable infinite swipe between tabs - Added new menu Plus and moved there all additional Plus features - Added option to show/hide direct share button in any chat - Added switch to use direct share without quoting sender - Added date indicator toast in chat - Added current download/upload size in chat screen - Added sort options (default/unread) to all tabs - Added different options in groups/supergroups for admins when user avatar is clicked in chat screen: ‘Show profile’, ‘Delete from group’ and ‘Set as admin’ - Added option to remove from admin list if user is already an admin - Added ‘Mark as read’ for individual chats and ‘Mark all as read’ for every tab - Added option in Plus settings to show username instead of mobile number in menu - Bug fixes
30 lines
715 B
C
30 lines
715 B
C
#ifndef log_h
|
|
#define log_h
|
|
|
|
#include <android/log.h>
|
|
#include <jni.h>
|
|
|
|
#define LOG_TAG "tmessages_native"
|
|
#ifndef LOG_DISABLED
|
|
#define LOGI(...) __android_log_print(ANDROID_LOG_INFO, LOG_TAG, __VA_ARGS__)
|
|
#define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG, LOG_TAG, __VA_ARGS__)
|
|
#define LOGE(...) __android_log_print(ANDROID_LOG_ERROR, LOG_TAG, __VA_ARGS__)
|
|
#define LOGV(...) __android_log_print(ANDROID_LOG_VERBOSE, LOG_TAG, __VA_ARGS__)
|
|
#else
|
|
#define LOGI(...)
|
|
#define LOGD(...)
|
|
#define LOGE(...)
|
|
#define LOGV(...)
|
|
#endif
|
|
|
|
#ifndef max
|
|
#define max(x, y) ((x) > (y)) ? (x) : (y)
|
|
#endif
|
|
#ifndef min
|
|
#define min(x, y) ((x) < (y)) ? (x) : (y)
|
|
#endif
|
|
|
|
void throwException(JNIEnv *env, char *format, ...);
|
|
|
|
#endif
|