Commit Graph

59 Commits

Author SHA1 Message Date
Marcel Hibbe
827e44fd3f Rename some "magic"
Only renaming...

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2023-03-14 16:28:27 +00:00
Andy Scherzinger
f48575bfec
Spotbug: Method stores return result in local before immediately returning it
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2022-12-29 11:37:18 +01:00
Daniel Calviño Sánchez
5d7b5160b7 Rename PeerConnectionEvent to ProximitySensorEvent
Proximity sensor events should not have been part of
PeerConnectionEvent. However, now that all the peer connection related
properties were removed the remaining event can be renamed to something
more accurate.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2022-12-28 15:48:45 +01:00
Daniel Calviño Sánchez
c8398695f4 Remove no longer needed code after removing EventBus message
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2022-12-28 15:48:45 +01:00
Daniel Calviño Sánchez
fcbfc1926d Post MediaStreamEvents for each connection state
Rather than simplifying the states to "CONNECTED" and "DISCONNECTED" now
the raw state is posted, and the handler then decides how to treat them
(which, for now, is exactly as before).

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2022-12-28 15:48:45 +01:00
Daniel Calviño Sánchez
4457e92504 Generalize PUBLISHER_FAILED event
Rather than emitting PUBLISHER_FAILED when the publisher connection
fails now PEER_FAILED is emitted when any connection fails, and the
handler checks if the connection was the publisher one to apply the
specific behaviour.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2022-12-28 15:48:45 +01:00
Daniel Calviño Sánchez
dceb4a6d79 Add listener for data channel messages
For now only the same data channel messages that were already handled
are taken into account, but at a later point the missing messages
("speaking" and "stoppedSpeaking") could be added too.

Note that the thread used to handle the data channel messages has
changed; the EventBus subscriber mode was "MAIN", but as the messages
were posted from a DataChannel observer, which run in a worker thread
rather than in the main thread, the subscriber was executed in the main
thread rather than in the same thread as the poster. Due to this the
actions performed by the handler now must be explicitly run in the main
thread.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2022-12-28 11:47:55 +01:00
Daniel Calviño Sánchez
65ff4efcb9
Send signaling messages directly from PeerConnectionWrapper
Note that the thread used to send the message does not change; the
EventBus subscriber mode was "BACKGROUND", but as the messages were
posted from a WebSocket handler (when requesting offers to the HPB) and
peer connection observers (when sending offers/answers and candidates,
both with and without HPB), which run in worker threads rather than in
the main thread, the subscriber was executed in the same thread as
the poster.

For legacy reasons, when the internal signaling server is used the
offers and answers are expected to also provide the nick of the local
participant. When the external signaling server is used the field can be
included, but it is just ignored and not sent to the other clients. As
the local participant nick is a value unrelated to the peer connection
and is only needed with one type of signaling server the messages are
adjusted as needed before being sent rather than handling this inside
the PeerConnectionWrapper.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2022-12-27 14:28:57 +01:00
Marcel Hibbe
3a517f5760
add missed call notification, show delivery delay in debug mode
- add missed call notifications in NotificationWorker and CallNotificationActivity

- introduce refactoring of Notification handling (isolate firebase stuff from other logic). All "UI-notification" logic from ChatAndCallMessagingService was moved to NotificationWorker. ChatAndCallMessagingService was renamed to NCFirebaseMessagingService because it is now only responsible for firebase stuff. This separation should make it easier for alternative push services to dock with the app (if they are incorporated in the future).

- for DEBUG mode: show delivery delay time in notifications (time between sending from firebase to receive on device).

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2022-11-10 12:17:23 +01:00
Daniel Calviño Sánchez
9f445efc1c Post event when a participant is connected and disconnected
RTCPeerConnections have several states but, for simplicity, for now the
events posted reflect only if the connection is fully established or
not (which includes both a broken connection or an established
connection that is unstable or being updated), which is enough for a
basic information about the connection state in the UI.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2022-09-18 23:25:57 +02:00
Marcel Hibbe
2348919d97
modify copyright headers authors
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2022-02-16 11:34:10 +01:00
Marcel Hibbe
8ea9663d5e
fix to fetch conversations list after executing bottom sheet operations
BottomSheetLockEvent was only used for old bottom dialog with "kennyc" lib

instead ConversationsListFetchDataEvent.kt is now used to fetch the data in ConversationsListController whenever needed

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2022-02-16 11:34:09 +01:00
Andy Scherzinger
66795bb48b
correct code formatting and license header added
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2022-02-16 11:34:07 +01:00
Marcel Hibbe
ac0c961557
open Conversation after being created via ContactsController
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2022-02-16 11:34:06 +01:00
Andy Scherzinger
b350a4c86e
remove default constructors (generated by the compiler) and simplify if-statements of equals-methods
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2021-04-29 16:37:57 +02:00
Andy Scherzinger
61aaae4dc2
Update code base for Android Studio 4.1.3
Remove lombock @Data annotations
Replace FindBugs with SpotBugs
Update Lombock version

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2021-04-29 00:46:35 +02:00
Andy Scherzinger
e82808080d
reformat kotlin code to comply with ktlint
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2021-04-27 18:16:51 +02:00
Mario Danic
39c2dced64
Fix #713, Fix #720
Signed-off-by: Mario Danic <mario@lovelyhq.com>
2020-02-12 10:57:35 +01:00
Mario Danic
041b77da21 Kotlin & hardening
Signed-off-by: Mario Danic <mario@lovelyhq.com>
2019-09-27 12:48:22 +02:00
Mario Danic
0b7ce8295c First draft of participants management
Signed-off-by: Mario Danic <mario@lovelyhq.com>
2019-09-16 11:10:35 +02:00
Mario Danic
6a5aaac224 Lobby & Various bugfixes and improvements
Includes conversion to Kotlin of some files

Signed-off-by: Mario Danic <mario@lovelyhq.com>
2019-08-30 12:13:33 +02:00
Mario Danic
6ce0d53412 Fix nick & some reconnection
Signed-off-by: Mario Danic <mario@lovelyhq.com>
2019-06-25 10:17:08 +02:00
Mario Danic
27d69e73d1 Fix up internet reconnections
Signed-off-by: Mario Danic <mario@lovelyhq.com>
2019-05-29 15:16:44 +02:00
Mario Danic
f3877b4bb5 Fix #494
Signed-off-by: Mario Danic <mario@lovelyhq.com>
2019-04-11 10:59:36 +02:00
Mario Danic
183c7afd5d Implement leave & delete in conversation info
Signed-off-by: Mario Danic <mario@lovelyhq.com>
2019-03-04 08:50:39 +01:00
Mario Danic
455601b5a6 Reformat
Signed-off-by: Mario Danic <mario@lovelyhq.com>
2019-02-15 01:49:57 +01:00
Mario Danic
ed7cd1b788 Add screensharing support
Signed-off-by: Mario Danic <mario@lovelyhq.com>
2019-01-07 02:17:47 +01:00
Mario Danic
8af64364b7 Progress in improving external signaling 2018-10-25 00:15:54 +02:00
Mario Danic
ce5f1706b9 Clean ups & More progress towards #206 2018-10-23 21:46:22 +02:00
Mario Danic
72d3f5ef66 More work towards working websockets 2018-10-12 20:07:12 +02:00
Mario Danic
bd2820c90e First step to AndroidX migration 2018-10-02 22:34:00 +02:00
Mario Danic
ef8a2b68fd Fix #253, Work on #268
Signed-off-by: Mario Danic <mario@lovelyhq.com>
2018-08-04 13:50:14 +02:00
Mario Danic
7941ce1ec5 Fix rotation issues with MagicCallControlelr
Signed-off-by: Mario Danic <mario@lovelyhq.com>
2018-07-29 14:38:51 +02:00
Mario Danic
59b54d1f7b Fix new conversations
Signed-off-by: Mario Danic <mario@lovelyhq.com>
2018-05-10 15:18:22 +02:00
Mario Danic
f2aee50a74 Reworked UI & Voice-only calls
Signed-off-by: Mario Danic <mario@lovelyhq.com>
2018-05-10 14:42:11 +02:00
Mario Danic
deaa761736 Up the game on performance & reliability
Signed-off-by: Mario Danic <mario@lovelyhq.com>
2018-04-26 12:46:33 +02:00
Mario Danic
f8bb67f3fe Refactoring
Signed-off-by: Mario Danic <mario@lovelyhq.com>
2018-03-03 21:02:29 +01:00
Mario Danic
9ab28762fa Fix #106
Signed-off-by: Mario Danic <mario@lovelyhq.com>
2018-02-27 18:53:34 +01:00
Mario Danic
70670baf3a Support creating 1-to-1 via new conversation
Signed-off-by: Mario Danic <mario@lovelyhq.com>
2018-02-27 17:03:56 +01:00
Mario Danic
2dc738e2f2 Cleanups
Signed-off-by: Mario Danic <mario@lovelyhq.com>
2018-01-29 09:06:05 +01:00
Mario Danic
a0b30abb1f Work on #78
Signed-off-by: Mario Danic <mario@lovelyhq.com>
2018-01-25 23:52:38 +01:00
Mario Danic
dc0064ee13 Refresh data only when needed
Signed-off-by: Mario Danic <mario@lovelyhq.com>
2018-01-24 13:49:10 +01:00
Mario Danic
f3ce80e8ce Start working on #40
Signed-off-by: Mario Danic <mario@lovelyhq.com>
2018-01-24 12:59:36 +01:00
Mario Danic
82e5d69000 Fix #38
Signed-off-by: Mario Danic <mario@lovelyhq.com>
2017-12-21 03:17:11 +01:00
Mario Danic
bc7d2f9f71 Fix #23 and a few other bugs
Signed-off-by: Mario Danic <mario@lovelyhq.com>
2017-12-19 17:19:36 +01:00
Mario Danic
c445edaa6e Change color for providers text
Signed-off-by: Mario Danic <mario@lovelyhq.com>
2017-12-18 23:31:18 +01:00
Mario Danic
fdaa69f489 Magical sensor stuff
Signed-off-by: Mario Danic <mario@lovelyhq.com>
2017-12-09 20:11:51 +01:00
Mario Danic
26eb025c28 Done
Signed-off-by: Mario Danic <mario@lovelyhq.com>
2017-12-03 15:18:15 +01:00
Mario Danic
6f641899f1 Some work on the menu
Signed-off-by: Mario Danic <mario@lovelyhq.com>
2017-11-28 03:42:48 +01:00
Mario Danic
1dde5029f4 Work on menu & few other things
Signed-off-by: Mario Danic <mario@lovelyhq.com>
2017-11-27 14:31:17 +01:00