Commit a821fddb authored by Leonardo Aramaki's avatar Leonardo Aramaki

Remove logs

parent 6c62d59b
......@@ -93,12 +93,9 @@ object PushManager {
fun clearNotificationsByNotificationId(notificationId: Int) {
if (hostToPushMessageList.isNotEmpty()) {
for (entry in hostToPushMessageList.entries) {
println("state: ${entry.value.size} -> ${entry.value}")
println("Removing from ${entry.key}")
entry.value.removeAll {
it.notificationId.toInt() == notificationId
}
println("state: ${entry.value.size} -> ${entry.value}")
}
}
}
......@@ -356,7 +353,8 @@ object PushManager {
val inbox = Notification.InboxStyle()
val userMessages = pushMessageList.filter {
it.notificationId == lastPushMessage.notificationId }
it.notificationId == lastPushMessage.notificationId
}
val count = pushMessageList.filter {
it.title == title
......@@ -581,15 +579,8 @@ object PushManager {
return remoteInput?.getCharSequence(REMOTE_INPUT_REPLY)
}
private fun inspect(variable: String, value: CharSequence) {
println("$variable = ${value}")
}
// Just kept for reference. We should use this on rewrite with job schedulers
private fun sendMessage(hostname: String, message: CharSequence, roomId: String) {
inspect("hostname", hostname)
inspect("message", message)
inspect("roomId", roomId)
val roomRepository = RealmRoomRepository(hostname)
val userRepository = RealmUserRepository(hostname)
val messageRepository = RealmMessageRepository(hostname)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment