aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/main/java/com/juick/server/MessengerManager.java
diff options
context:
space:
mode:
Diffstat (limited to 'juick-server/src/main/java/com/juick/server/MessengerManager.java')
-rw-r--r--juick-server/src/main/java/com/juick/server/MessengerManager.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/juick-server/src/main/java/com/juick/server/MessengerManager.java b/juick-server/src/main/java/com/juick/server/MessengerManager.java
index 51bbb3e2..303e08ce 100644
--- a/juick-server/src/main/java/com/juick/server/MessengerManager.java
+++ b/juick-server/src/main/java/com/juick/server/MessengerManager.java
@@ -78,7 +78,7 @@ public class MessengerManager implements ApplicationListener<MessageEvent> {
User user_from = userService.getUserByUID(messengerService.getUserId(senderId)).orElse(new User());
logger.info("Found juick user {}", user_from.getUid());
- if (user_from.getUid() == 0) {
+ if (user_from.isAnonymous()) {
try {
UserProfile profile = messenger.queryUserProfile(senderId);
signupNotify(senderId, messengerService.getSignUpHash(senderId, profile.firstName()));