openhab/openhab-ios

notification list gets appended after refreshing (instead of replaced?)

B4stl3r opened this issue · 1 comments

New bug checklist

Describe the bug
if you refresh the notifications inside the iOS App, the List gets appended instead of replaced?

To Reproduce
Steps to reproduce the behavior:

  1. Create myopenhab account and connect app via remote URL to your instance
  2. Send (at least) one notification from your local openhab instance, e.g. via a rule (sendNotification("mailaddy",
    "This is our notification sent via app."))
  3. Inside the App click on hamburger menu, "notification"
  4. here you should see now this (or multiple) notification(s)
  5. "update" (pull screen down), notifications will get doubled. (list append?)
  6. "update" it again, 3 times, etc. etc.

Expected behavior
notifications should be replaced, not appended?

Screenshots
here you see the notifications before refreshing:
ohbeforerefresh

here you see the notifications after refreshing:
ohafterrefresh

App (please complete the following information):

  • Version [e.g. 2.4.43]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone 12 mini]

openHAB (please complete the following information):

  • Version [e.g. 3.2.0]

One issue off the list! Great!