Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/majn/telegram-purple.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormjentsch <mtthsjntsch@gmail.com>2016-01-24 23:29:48 +0300
committermjentsch <mtthsjntsch@gmail.com>2016-01-24 23:29:48 +0300
commit660376b9df9348fff6aba11e0c4c4a9b8213914f (patch)
tree1d5554852625ea5d8831cc7a331d73b8efc0d71f /telegram-adium
parent4e085428239fd595e46cdd76134241674d2af789 (diff)
Remove all left chats
Use new TGLCF_LEFT instead of user count to determine left chats more reliably.
Diffstat (limited to 'telegram-adium')
-rw-r--r--telegram-adium/TelegramJoinChatViewController.m3
1 files changed, 1 insertions, 2 deletions
diff --git a/telegram-adium/TelegramJoinChatViewController.m b/telegram-adium/TelegramJoinChatViewController.m
index 4f6dbe9..986375e 100644
--- a/telegram-adium/TelegramJoinChatViewController.m
+++ b/telegram-adium/TelegramJoinChatViewController.m
@@ -34,8 +34,7 @@
static void tgl_chat_iterator_cb (tgl_peer_t *peer, void *extra) {
NSMutableArray *A = (__bridge NSMutableArray *)(extra);
- // chats with 0 participants were deleted or left by the user
- if (tgl_get_peer_type (peer->id) == TGL_PEER_CHAT && peer->chat.users_num > 0) {
+ if (tgl_get_peer_type (peer->id) == TGL_PEER_CHAT && !(peer->chat.flags & TGLCF_LEFT)) {
[A addObject: [NSString stringWithUTF8String: peer->print_name]];
}
}