Commit graph

9774 commits

Author SHA1 Message Date
renovate[bot]
962b587a28
fix(deps): update dependency com.github.nextcloud.android-common:ui to v0.24.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-12 11:34:06 +00: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
github-actions[bot]
3d6bd86a21
Merge pull request #4432 from nextcloud/renovate/gradle-8.x
chore(deps): update dependency gradle to v8.11
2024-11-11 15:14:45 +00:00
renovate[bot]
1396653c5d
chore(deps): update dependency gradle to v8.11
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-11 15:06:47 +00:00
Marcel Hibbe
681e941682
Merge pull request #4427 from nextcloud/bugfix/noid/archiveConversationsHandleOldNcServers
Bugfix/noid/archive conversations handle old nc servers
2024-11-11 16:00:10 +01: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 Android Bot
3e10813ae0 Weekly 20.1.0 Alpha 11 2024-11-11 03:13:27 +00: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
github-actions[bot]
38ff7fd07d
Merge pull request #4430 from nextcloud/renovate/com.github.nextcloud.android-common-ui-0.x
fix(deps): update dependency com.github.nextcloud.android-common:ui to v0.23.2
2024-11-08 20:25:44 +01:00
github-actions[bot]
553fd0faf3
Merge pull request #4429 from nextcloud/renovate/github-codeql-action-3.x
chore(deps): update github/codeql-action action to v3.27.1
2024-11-08 20:24:37 +01:00
renovate[bot]
3595c1d315
fix(deps): update dependency com.github.nextcloud.android-common:ui to v0.23.2
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-08 19:11:12 +00:00
renovate[bot]
00622b77ca
chore(deps): update github/codeql-action action to v3.27.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-08 19:06:37 +00:00
Andy Scherzinger
73af4906e4
Merge pull request #3926 from nextcloud/renovate/com.vanniktech-emoji-google-0.x
fix(deps): update dependency com.vanniktech:emoji-google to v0.21.0
2024-11-08 12:20:11 +01:00
renovate[bot]
f547966275 Update dependency com.vanniktech:emoji-google to v0.21.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-08 11:48:36 +01:00
github-actions[bot]
a0765ad363
Merge pull request #4424 from nextcloud/renovate/com.google.devtools.ksp-2.x
chore(deps): update plugin com.google.devtools.ksp to v2.0.21-1.0.27
2024-11-08 03:11:30 +01:00
renovate[bot]
e2d1d2ee8e
chore(deps): update plugin com.google.devtools.ksp to v2.0.21-1.0.27
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-08 02:05:15 +00:00
Andy Scherzinger
4b88136744
Merge pull request #4408 from arkascha/issues-3920-note-to-self-messages-should-take-up-most-of-the-screen-width
Make messages in 'Note To Self' chat room take full available screen width
2024-11-07 19:52:55 +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
Andy Scherzinger
cabd248e13
ci: bump detekt score
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2024-11-07 14:32:42 +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
Marcel Hibbe
f48c33d9b1
Merge pull request #4360 from nextcloud/last_moderator_should_delete_room
Last moderator should not leave the room
2024-11-05 15:29:46 +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
4ff9b2b3c6
add 12.json which includes modifications for "hasArchived"
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2024-11-05 13:49:10 +01:00
Marcel Hibbe
219163c4a8
revert 11.json to the state before modifications for "hasArchived"
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2024-11-05 13:49:09 +01:00
Marcel Hibbe
967c3aedd3
Merge pull request #4390 from nextcloud/bugfix/4380/fixMessagesNotShownAndImproveUnreadMarker
fix messages not shown + improve unread marker behavior
2024-11-05 13:46:47 +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