Skip to content

Commit 3fde6ac

Browse files
author
Klaus Plankensteiner
committed
bugfix
1 parent 9fa7747 commit 3fde6ac

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

server/app/src/main/java/com/epicnerf/hibernate/dao/NotificationDao.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,8 @@ private void addUserMapping(String deviceIdentifier, User user) {
7272

7373
device.setUser(user);
7474

75-
//this shall be called before the save, such we only send notification to current devices
76-
notificationManager.onNewDeviceLink(user, device);
7775
deviceRepository.save(device);
76+
notificationManager.onNewDeviceLink(user, device);
7877
}
7978

8079
public void insertForAllUsersOfGroup(@NonNull String title, @NonNull String body, @NonNull GroupObject group) {

0 commit comments

Comments
 (0)