X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2Fnotification%2FLocalPostHandler.kt;h=59f605211340c62e441edf0ef4dc06431d2733b5;hp=a5153ce2254691bc1e4d96376305ab49446385f6;hb=2f1e414e86c61435cd8b3991c475e0832f6de2fb;hpb=2a83103aab6254d877c1b5214ca5a3ef19a6fe83 diff --git a/src/main/kotlin/net/pterodactylus/sone/web/notification/LocalPostHandler.kt b/src/main/kotlin/net/pterodactylus/sone/web/notification/LocalPostHandler.kt index a5153ce..59f6052 100644 --- a/src/main/kotlin/net/pterodactylus/sone/web/notification/LocalPostHandler.kt +++ b/src/main/kotlin/net/pterodactylus/sone/web/notification/LocalPostHandler.kt @@ -1,5 +1,5 @@ /** - * Sone - NewLocalPostHandler.kt - Copyright © 2019 David ‘Bombe’ Roden + * Sone - LocalPostHandler.kt - Copyright © 2019 David ‘Bombe’ Roden * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -33,9 +33,9 @@ class LocalPostHandler @Inject constructor(private val notificationManager: Noti fun newPostFound(newPostFoundEvent: NewPostFoundEvent) { newPostFoundEvent.post.onLocal { post -> notification.add(post) - } - if (!notificationManager.hasFirstStartNotification()) { - notificationManager.addNotification(notification) + if (!notificationManager.hasFirstStartNotification()) { + notificationManager.addNotification(notification) + } } }