                     UIUserNotificationType.Alert.rawValue, categories: [category])
             
         } else {
-            
             // 这里才开始向用户提示推送
             APService.registerForRemoteNotificationTypes(
                 UIUserNotificationType.Badge.rawValue |

                AvatarPod.wakeAvatar(userAvatar, completion: { _ ,_ in })
            }

            // 每个对话的最近 10 条消息（image or thumbnail）

            guard let realm = try? Realm() else {


        dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0)) {

            // 聊天界面的小头像

            for user in normalUsers() {

