code: public void onNotificationsResumed() {
          isNotificationsPaused = false;
  
          // If there are notifications during pause
          if (notificationsDuringPause.size() > 0) {
  
              if (isAppVisible) {
                  if (visiblePeer != null && notificationsDuringPause.containsKey(visiblePeer)) {
  
                      // If there was message from visible chat
                      if (isMobilePlatform) {
  
                          // Playing sound effects for mobile platforms
                          playEffectIfEnabled();
                      } else {
  
                          // Don't play sounds in chat on non-mobile platforms
                      }
                  } else {
  
                      // If there are no messages from visible peer
                      if (isMobilePlatform) {
  
                          // Don't play sounds not from current chat on mobile platforms
                      } else {
  
                          // Find any suitable peer and if found play sound effect
                          for (Peer p : notificationsDuringPause.keySet()) {
  
                              if (isNotificationsEnabled(p, notificationsDuringPause.get(p))) {
                                  playEffectIfEnabled();
                                  break; // Can't do return because we need to make more work later
                              }
                          }
                      }
                  }
              } else {
  
                  // Just show out-app notification
                  for (Peer p : notificationsDuringPause.keySet()) {
  
                      if (isNotificationsEnabled(p, notificationsDuringPause.get(p))) {
                          showNotification();
                          break;
                      }
                  }
              }
  
              // Clearing of notifications
              notificationsDuringPause.clear();
          }
      }
docs: Resuming notifications.
  Checking all pending notification peers and play notifications if it is required.
  WARRING: Implementation contains modified copy of code of onNewMessage method