Commit graph

6361 commits

Author SHA1 Message Date
Marcel Hibbe
49c9b3c3e0
remove to set KEY_ROOM_ONE_TO_ONE twice
it's set in proceedToCall()

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2024-11-12 12:11:10 +01:00
Marcel Hibbe
79a8c16758
rename variables and methods
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2024-11-12 12:11:10 +01:00
sowjanyakch
37c3f35f7a
suppress warning string format invalid
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-11-12 12:11:09 +01:00
sowjanyakch
4705d1f7b0
use proper names for popup menu
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-11-12 12:11:09 +01:00
sowjanyakch
121e77b753
use white background for popup button and formatting
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-11-12 12:11:09 +01:00
sowjanyakch
eda9b94182
use touch listeners for hiding popup button
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-11-12 12:11:09 +01:00
sowjanyakch
0920029183
show popup for leaving call in 1:1
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-11-12 12:11:08 +01:00
sowjanyakch
90628c34ce
set "all" parameter to false and set to null only before API call
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-11-12 12:11:08 +01:00
sowjanyakch
d09b7b5a07
remove isGroupConversation variable
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-11-12 12:11:08 +01:00
sowjanyakch
cfe83dd027
remove isGroupConversation variable
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-11-12 12:11:08 +01:00
sowjanyakch
de637871a6
ktlintFormat
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-11-12 12:11:07 +01:00
sowjanyakch
e5789c0cf6
set bundle keys in CallNotificationActivity
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-11-12 12:11:07 +01:00
sowjanyakch
dff22845eb
implement material button
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-11-12 12:11:07 +01:00
sowjanyakch
a25f83cb4d
modify string
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-11-12 12:11:07 +01:00
sowjanyakch
d523f12462
ktlintFormat
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-11-12 12:11:07 +01:00
sowjanyakch
be9bda7f04
ktlintFormat
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-11-12 12:11:06 +01:00
sowjanyakch
bf3ed0ed42
handle end call button
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-11-12 12:11:06 +01:00
sowjanyakch
3d536c2af4
add short press and long press options to 1:1 conversation
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-11-12 12:11:06 +01:00
sowjanyakch
3a6a1edad4
add short press and long press options to group conversation
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-11-12 12:11:06 +01:00
sowjanyakch
6e2fdcb255
git bundle keys for group conversation
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-11-12 12:11:05 +01:00
sowjanyakch
9537a8d9d3
add bundle keys for one-one conversation
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-11-12 12:11:05 +01:00
sowjanyakch
ca0533a686
add button for end call for everyone
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-11-12 12:11:05 +01:00
sowjanyakch
ed9fc185bf
implement long click and short click on hangup button
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-11-12 12:11:05 +01:00
sowjanyakch
52fd3f9002
Add support for all parameter in leave call endpoint
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-11-12 12:11:05 +01:00
Nextcloud bot
edd6a01564
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-11-12 03:00:50 +00:00
Marcel Hibbe
1968d43691
require archived-conversations-v2
For archived conversations, require "-v2".
This is done because on server api, "archived-conversations" was already released for 20.0.2 by mistake which should have only be done for 20.1

As it's planned to release android talk 20.0.3 with a fresh master state, the archived conversations feature must be hidden manually, This is done by required "-v2".
Either it's served as this in the future or it can be removed for the 20.1.0 release.

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2024-11-11 15:44:07 +01:00
Marcel Hibbe
2a2f8a8148
hide archivedFilterChip when capability is not available
Otherwise it would be shown for older NC versions without to be useful

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2024-11-11 15:44:06 +01:00
Marcel Hibbe
6092523146
delete isArchiveConversationsAvailable
only more complex checks should be made in CapabilitiesUtil, just checking a capability should be done directly via hasSpreedFeatureCapability

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2024-11-11 15:44:06 +01:00
Marcel Hibbe
07cf834cc5
hide archiveConversationTextHint when archive not available
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2024-11-11 15:44:06 +01:00
Nextcloud bot
60853df4c0
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-11-11 02:58:20 +00:00
Nextcloud bot
8a4c45e8ca
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-11-09 02:58:55 +00:00
sowjanyakch
00632e5d70
suppress string format invalid
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-11-08 20:33:31 +01:00
sowjanyakch
17e105b09c
store lock setting in arbitrary storage
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-11-08 20:33:31 +01:00
sowjanyakch
50569a09af
set conversation read only
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-11-08 20:33:31 +01:00
sowjanyakch
956f2c435b
modify activity_conversation_info.xml
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-11-08 20:33:31 +01:00
Andy Scherzinger
3ac1b18d3d
fix(spotbugs): Improve spotbugs scoring
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2024-11-07 15:42:58 +01:00
Christian Reiner
238532feb2 adjust outcoming message view holders to use full available width in NoteToSelf chat
Signed-off-by: Christian Reiner <foss@christian-reiner.info>
2024-11-06 19:54:52 +01:00
Christian Reiner
315e263d31 fix spelling of property name in ChatViewModel
Signed-off-by: Christian Reiner <foss@christian-reiner.info>
2024-11-06 19:34:14 +01:00
Nextcloud bot
d9bcf14696
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-11-06 02:54:03 +00:00
Marcel Hibbe
44ab12b63b
Merge pull request #4417 from nextcloud/bugfix/noid/fixDbMigration11to12
Fix DB migration 11 to 12
2024-11-05 16:08:53 +01:00
Marcel Hibbe
bd7f6d72c5
Merge pull request #4384 from nextcloud/issue-4361-message-queue-bug
Message Queue bug fixes
2024-11-05 15:30:43 +01:00
rapterjet2004
d96682889c
fix to display message queue when revisiting chat in offline mode
Signed-off-by: rapterjet2004 <juliuslinus1@gmail.com>
2024-11-05 15:11:10 +01:00
Marcel Hibbe
2ad8c2eabc
set nc_last_moderator_leaving_room_warning to one line in strings.xml
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2024-11-05 15:00:51 +01:00
sowjanyakch
a39ca256de
add const val for error code
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-11-05 14:53:36 +01:00
sowjanyakch
6c4685dce5
handle errors properly
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-11-05 14:53:36 +01:00
sowjanyakch
f6489eb10d
ktlintFormat
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-11-05 14:53:36 +01:00
sowjanyakch
9df91b6e74
refresh main activity after leaving a conversation
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-11-05 14:53:36 +01:00
sowjanyakch
a07a5446be
make worker listenable
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-11-05 14:53:36 +01:00
sowjanyakch
aa5fd42c59
handle workResult
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-11-05 14:53:35 +01:00
sowjanyakch
088e6fd79f
Start unique work
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-11-05 14:53:35 +01:00
sowjanyakch
e04f2362e3
remove unused imports
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-11-05 14:53:35 +01:00
sowjanyakch
f6824f94f1
Convert LeaveConversationWorker from java to Kotlin
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-11-05 14:53:35 +01:00
sowjanyakch
be55a908d5
Rename .java to .kt
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-11-05 14:53:35 +01:00
Marcel Hibbe
11a4738a4c
fix addArchiveConversations migration method
this will set NOT NULL and DEFAULT 0 to hasArchived column

Otherwise there would be an error when updating from the previous DB version:

IllegalStateException: Migration didn't properly handle: Conversations(com.nextcloud.talk.data.database.model.ConversationEntity)

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2024-11-05 14:43:19 +01:00
Marcel Hibbe
ff90552527
rename pair to triple
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2024-11-05 13:31:54 +01:00
Marcel Hibbe
662ddd275e
remove unused constants from ChatActivity
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2024-11-05 13:31:54 +01:00
Marcel Hibbe
29f7265b19
implement "Unread messages" popup with normal button
replace com.nextcloud.ui.popupbubble.PopupBubble with MaterialButton.

com.nextcloud.ui.popupbubble.PopupBubble was forked from
https://github.com/webianks/PopupBubble
which is quite outdated.

com.nextcloud.ui.popupbubble.PopupBubble is still used in ConversationsListActivity but there it should also be removed.

Removing this recycler view stuff will also help a bit to switch to JetpackCompose

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2024-11-05 13:31:54 +01:00
Marcel Hibbe
675bc9bec0
fix messages not shown + improve unread marker behavior
this commit will avoid to fail to show messages in adapter. This was caused by the usage of
messagesListAdapter.deleteById("-1");
in UnreadNoticeMessageViewHolder.
The bug seems to exist in the past already but was never reported (Sometimes, when receiving a lot of messages it could happen that some message in between is not shown in UI). However with recent changes after release 20.0.2 the bug appeared more often.

The root cause was not analyzed, but the handling was modified in general as the unread marker behavior was never really good.
By not using deleteById but replace it with new unread marker logic, the bug of disappearing messages is solved and the unread messages marker behavior is improved.

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2024-11-05 13:31:54 +01:00
Nextcloud bot
d53ef9a65f
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-11-05 12:26:27 +00:00
Nextcloud bot
afe0e08ffd
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-11-05 10:56:29 +00:00
Nextcloud bot
88dc32e311
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-11-05 02:53:00 +00:00
Nextcloud bot
0e3ea77b9c
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-11-04 03:00:18 +00:00
Nextcloud bot
a4d953cdd0
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-11-03 03:00:32 +00:00
Nextcloud bot
33ce261108
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-11-02 03:34:37 +00:00
Nextcloud bot
2e3749cf58
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-11-01 02:50:39 +00:00
Nextcloud bot
7f74a1a383
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-10-31 02:51:57 +00:00
Nextcloud bot
6b294bd956
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-10-30 02:52:36 +00:00
Nextcloud bot
b290cd2712
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-10-29 02:50:05 +00:00
Julius Linus
085711d077
Merge pull request #4333 from nextcloud/issue-4257-archive-conversation
Archived Conversations 🗃️
2024-10-28 08:30:03 -05:00
Nextcloud bot
b64e952281
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-10-27 03:00:43 +00:00
Nextcloud bot
e98dbb1f91
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-10-26 02:50:19 +00:00
Nextcloud bot
d84d349019
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-10-25 03:08:02 +00:00
sowjanyakch
b2b64674c0
ktlintFormat
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-10-24 13:51:06 +02:00
sowjanyakch
3cd25f4248
use const val for time
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-10-24 13:49:16 +02:00
sowjanyakch
808da8970a
KtlintFormat
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-10-24 13:43:00 +02:00
sowjanyakch
112a2c28f0
Only group Chat messages
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-10-24 13:43:00 +02:00
sowjanyakch
aaa27ba0ef
modify previousChatMessageIndex
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-10-24 13:43:00 +02:00
sowjanyakch
9f8374e61c
remove unused constants
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-10-24 13:43:00 +02:00
sowjanyakch
036485e28d
group chat messages
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-10-24 13:43:00 +02:00
Nextcloud bot
bf6e703419
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-10-24 03:19:52 +00:00
rapterjet2004
7285c0ae44
codacy and analysis
Signed-off-by: rapterjet2004 <juliuslinus1@gmail.com>
2024-10-23 08:54:18 -05:00
sowjanyakch
074297ca42
remove comments
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-10-23 15:52:40 +02:00
sowjanyakch
fda055ee52
ktlintFormat
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-10-23 15:52:40 +02:00
sowjanyakch
ee445f5722
don't set timer in past
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-10-23 15:52:40 +02:00
sowjanyakch
71eb97c443
set timer for lobby
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-10-23 15:52:39 +02:00
rapterjet2004
3d9f8366c8
linter
Signed-off-by: rapterjet2004 <juliuslinus1@gmail.com>
2024-10-23 08:26:44 -05:00
rapterjet2004
d464d714ff
uses NcApiCoroutines now
Signed-off-by: rapterjet2004 <juliuslinus1@gmail.com>
2024-10-23 08:14:45 -05:00
Marcel Hibbe
b42824a5a1
Merge pull request #4371 from nextcloud/fix-handling-of-end-call-for-all-with-external-signaling
Fix handling of end call for everyone with external signaling
2024-10-23 15:02:26 +02:00
rapterjet2004
46efdf4b0c
changes
Signed-off-by: rapterjet2004 <juliuslinus1@gmail.com>
2024-10-23 07:26:20 -05:00
Daniel Calviño Sánchez
ded3867c24 Add explicit documentation about the different casing
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2024-10-23 13:02:27 +02:00
Daniel Calviño Sánchez
0705451921 Fix handling of end call for all with external signaling
When the message applies to all participants the property is all in
lower case. The comparison is case sensitive, so the message was ignored
and the call was not left by the Talk Android app.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2024-10-23 13:01:16 +02:00
sowjanyakch
99b410f94c
ktlintFormat
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-10-23 11:39:18 +02:00
sowjanyakch
81040e3eb9
modify strings
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-10-23 11:36:05 +02:00
sowjanyakch
986f19a8ae
use official deck card icon and some alignment changes
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-10-23 11:36:05 +02:00
sowjanyakch
bf1a426e5b
use correct deck card icon
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-10-23 11:36:05 +02:00
sowjanyakch
1e826979c6
add replyable message tag
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-10-23 11:36:05 +02:00
sowjanyakch
eb5cdca295
Rename outcomingDeckCardViewHolder
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-10-23 11:36:04 +02:00
sowjanyakch
305a66ef5a
Add theming to deck card image
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-10-23 11:36:04 +02:00
sowjanyakch
de420a3a30
include deck card name as the lastMessageDisplayText
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-10-23 11:36:04 +02:00
sowjanyakch
f492ebf03d
solve contentDescription warning for Image
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-10-23 11:36:04 +02:00