Skip to content

Always notify in one2one rooms#1029

Merged
Ivansss merged 1 commit into
masterfrom
feature/noid/always-notify-in-one2one-rooms
Aug 2, 2018
Merged

Always notify in one2one rooms#1029
Ivansss merged 1 commit into
masterfrom
feature/noid/always-notify-in-one2one-rooms

Conversation

@nickvergessen

@nickvergessen nickvergessen commented Jul 9, 2018

Copy link
Copy Markdown
Member

Notification is only send, when you don't have an active session for the room.
Or should we still do this, so you beep-boop when you have the tab open somewhere in the background? @mario @jancborchardt

Fix #875

@nickvergessen nickvergessen added this to the 4.0 (Nextcloud 14) milestone Jul 9, 2018
@nickvergessen
nickvergessen requested a review from Ivansss July 9, 2018 15:37
@nickvergessen
nickvergessen force-pushed the feature/noid/always-notify-in-one2one-rooms branch from b502d90 to c796aec Compare July 9, 2018 15:38
@mario

mario commented Jul 9, 2018

Copy link
Copy Markdown
Contributor

Few things conceptually before I look into the code:

a) We should probably kill mentions and just send general chat message, but up to you (e.g. if user is mentioned, do we only send mention and not a general chat message to THAT user?)

Based on your code, it seems we keep MENTIONS only for group/public chats, and always notify on one-to-one chats. Let me know if I'm wrong.

b) We should ALWAYS send notifications and the client should decide when to show it

My idea is the following:
- you receive a push notification for chat

  • are there already notifications for that chat?
    • YES - Show "There are more pending messages" notification
    • NO - Show the message in a notification

c) Is there a reason we do this only for one2one conversations?

@nickvergessen

Copy link
Copy Markdown
Member Author

Is there a reason we do this only for one2one conversations?

Yes, imagine your phone ringing 500 times during a company call.

@mario

mario commented Jul 9, 2018

Copy link
Copy Markdown
Contributor

@nickvergessen for chat notifications? If you're in a call, all notifications would play NO sound, of course.

@nickvergessen

Copy link
Copy Markdown
Member Author

Yeah well, but does your phone know you are active on the desktop or vice versa?

@mario

mario commented Jul 10, 2018

Copy link
Copy Markdown
Contributor

No (well, partly only). Unfortunately that's an issue, but not a huge one.

@GoetheG

GoetheG commented Jul 15, 2018

Copy link
Copy Markdown

Let the user decide.

@mario

mario commented Jul 16, 2018

Copy link
Copy Markdown
Contributor

@GoetheG this is not how it should work.

@jancborchardt

Copy link
Copy Markdown
Member

@nickvergessen yes, notification should also be sent when tab is open in background. But of course only for 1on1 calls or mentions to you in groups.

@nickvergessen
nickvergessen force-pushed the feature/noid/always-notify-in-one2one-rooms branch from c796aec to bced868 Compare July 27, 2018 10:06
@nickvergessen

Copy link
Copy Markdown
Member Author

Rebased on #1067 to resolve conflicts

@mario

mario commented Jul 27, 2018

Copy link
Copy Markdown
Contributor

So will this be changed for every type of room? :)

@nickvergessen

Copy link
Copy Markdown
Member Author

See PR title for details

@mario

mario commented Jul 27, 2018

Copy link
Copy Markdown
Contributor

@nickvergessen we should definitely still do it when in the background.

But I want this to work in the group/public calls too.

@nickvergessen

Copy link
Copy Markdown
Member Author

Which we cant do with the current iOS notifications because it can't silence them... Step by step inti the right direction

@nickvergessen
nickvergessen force-pushed the feature/noid/always-notify-in-one2one-rooms branch from bced868 to ad8afc6 Compare July 31, 2018 15:41
@nickvergessen

Copy link
Copy Markdown
Member Author

@Ivansss ready to review

@nickvergessen
nickvergessen force-pushed the feature/noid/always-notify-in-one2one-rooms branch 3 times, most recently from 602f197 to b2a0c58 Compare August 2, 2018 09:19
Signed-off-by: Joas Schilling <coding@schilljs.com>
@nickvergessen
nickvergessen force-pushed the feature/noid/always-notify-in-one2one-rooms branch from b2a0c58 to b74f91b Compare August 2, 2018 09:30
@Ivansss
Ivansss merged commit cd5cd44 into master Aug 2, 2018
@Ivansss
Ivansss deleted the feature/noid/always-notify-in-one2one-rooms branch August 2, 2018 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement feature: chat 💬 Chat and system messages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants