Commit Graph
101 Commits
Author SHA1 Message Date
Sahil Kumar e6a27754a2 Merge branches 'develop' and 'persistence/add-tests' of https://github.com/GetStream/stream-chat-flutter into persistence/add-tests
 Conflicts:
	packages/stream_chat_persistence/analysis_options.yaml
	packages/stream_chat_persistence/lib/src/dao/channel_query_dao.dart
	packages/stream_chat_persistence/lib/src/dao/message_dao.dart
	packages/stream_chat_persistence/lib/src/dao/user_dao.dart
	packages/stream_chat_persistence/lib/src/db/moor_chat_database.dart
	packages/stream_chat_persistence/lib/src/db/shared/native_db.dart
	packages/stream_chat_persistence/lib/src/db/shared/unsupported_db.dart
	packages/stream_chat_persistence/lib/src/mapper/channel_mapper.dart
	packages/stream_chat_persistence/lib/src/stream_chat_persistence_client.dart
	packages/stream_chat_persistence/pubspec.yaml
2021-03-19 18:26:31 +05:30
Salvatore Giordano fc1fec0695 fix analysis 2021-03-16 17:00:46 +01:00
Salvatore Giordano a14045a09d fix analysis 2021-03-16 16:52:44 +01:00
Sahil Kumar e87a8a07a1 test(persistence): add tests for user dao
Signed-off-by: Sahil Kumar <[email protected]>
2021-03-16 21:11:07 +05:30
Sahil Kumar 45870d7fab test(persistence): add test for read dao
Signed-off-by: Sahil Kumar <[email protected]>
2021-03-16 20:45:11 +05:30
Salvatore Giordano 37772f247a bump versions 2021-03-16 15:28:40 +01:00
Sahil Kumar edc8c4d181 test(persistence): add tests for connection event dao
Signed-off-by: Sahil Kumar <[email protected]>
2021-03-16 15:51:41 +05:30
Sahil Kumar 083ca28283 test(persistence): Add test for channel query dao
Signed-off-by: Sahil Kumar <[email protected]>
2021-03-15 16:48:56 +05:30
Salvatore Giordano a8443a98b0 fix reaction new deleting quoted message 2021-03-12 15:24:47 +01:00
9952265109 fix: persistence (#329)
* fix(llc): Save original passed persistence for client reconnection.

Signed-off-by: Sahil Kumar <[email protected]>

* fix(persistence): Check for empty channels before applying offset

Signed-off-by: Sahil Kumar <[email protected]>

* fix(llc): Remove debug logs

Signed-off-by: Sahil Kumar <[email protected]>

* fix(persistence): Reset isolate on successful disconnect

Signed-off-by: Sahil Kumar <[email protected]>

* use mutexes in persistence client

* fix(persistence): use `super.updateChannelStates`

Signed-off-by: Sahil Kumar <[email protected]>

* fix(persistence): fix database multiple times creation.

Signed-off-by: Sahil Kumar <[email protected]>

Co-authored-by: Sahil Kumar <[email protected]>
2021-03-12 14:16:41 +01:00
4488fa6c3a Release/1.4.0 beta (#318)
* fix: fixed long system messages overflowing

* fix: fixed long system messages overflowing

* [UI-Kit] Refactor, add support for downloading attachments.

Signed-off-by: Sahil Kumar <[email protected]>

* fix: header casing

* [UI-Kit] Disable attachment download dialog pop using back button

Signed-off-by: Sahil Kumar <[email protected]>

* stream_chat_flutter fix svg on web

* [UI-Kit] Pop attachment download dialog in case of any error.

Signed-off-by: Sahil Kumar <[email protected]>

* restore svg

* feat: add pr title linter

* fix test

* fix client headers

* update system message design

* update gh token env var

* add scopes

* expose systemMessageBuilder in messagelistview

* fix(ui): fix button size

* add dispatch workflow

* add dispatch workflow

* update dispatch acton

* add runson

* fix ref

* fix ref

* update secret

* specify repo

* fix: list scroll keyboard behaviour  (#304)

* fix: Keyboard now closes by clicking on space or scrolling.

* fix: Exposed system and normal message tap builders

* fmt: dartfmt

* feat: Add support for messages filter in `MessageListView` and `MessageListCore` (#303)

* [MessageListView, MessageListCore] Add support for message filter

Signed-off-by: Sahil Kumar <[email protected]>

* [UI-Kit -> Pubspec] Remove `stream_chat_flutter_core` relative import

Signed-off-by: Sahil Kumar <[email protected]>

* add relative import

* add relative import

* remove svg for web

* remove badge logic on web

* style: Update for team lint (#297)

* Update for team lint

* fix tests

* remove pedantic and sort deps

* remove jiffy from system message

Co-authored-by: Salvatore Giordano <[email protected]>

* add section highlighting sample app repo (#307)

Co-authored-by: Salvatore Giordano <[email protected]>

* add null check to debounce

* fix messagelistview loading errors

* remove core relative import

* fix: fixes message newline issue (#308)

* fix: minor

* fix: generate image thumbnails and use transparent image as placeholder for cached network images (#310)

* update cdn handling

* fix image attachment with new cdn

* fix(ui): Fix message input permission request crash (#311)

Signed-off-by: Sahil Kumar <[email protected]>

* fix(llc): update member presence and add skip_push to message (#314)

* update member presence

* add skip_push to message

* fix tests

* fix: Fixed shimmer overflow (#316)

* fix dialogs

* fix(llc): Fix attachment upload state uneven progress. (#315)

* feat(llc): Add rate limiter functions.
fix(llc): Fix attachment upload state uneven progress.

Signed-off-by: Sahil Kumar <[email protected]>

* feat(llc): Export `async.dart` and `rate_limit.dart`

Signed-off-by: Sahil Kumar <[email protected]>

* refactor(llc): Replace our `rate_limit` implementation with the dart port of js `lodash` to better handlw `cancel` and `flush` functions.

Signed-off-by: Sahil Kumar <[email protected]>

* fix(UI-Kit): Make android example run on real devices

Signed-off-by: Sahil Kumar <[email protected]>

* fix offline behaviour

Co-authored-by: Salvatore Giordano <[email protected]>

* feat: Introduce onAttachmentTap on messages attachment (#309)

* introdce onAttachmentTap on message

* correct indent

* sdfsd

Co-authored-by: Salvatore Giordano <[email protected]>

* feat: added customization options in main widgets (#312)

* polish channelpreview customization options

* polish channelheader customization options

* polish messageinput customization options

* polish threadheader customization options

* polish channellistheader customization options

* show the parent message if no messages in thread

* fix edit message

* fix channelinfo textstyle

* fix review

* fix useravatar

* add ontitle tap to thread header

* add custom message actions

* add borderradius and button builder

* add ontap to messageinput custom send button

* fix bottom sheet

* add doc

* use placeholder image

* add doc

* fix listtile density

* remove subtitle from ChannelListHeaderTheme.copyWith

* add InputDecoration.merge extension

* fix: use shimmer in images

* fix: remove notification badge logic from the sdk and move it to sample app

* fix import

* fix: Method being called during build (#317)

* method call bug fix

* dartfmt

* fix: show error messages as system and keep them in the message input (#319)

* fix: pre release (#324)

* use share_plus plugin

* bump dependency versions

* fix ui for web

* unfocus messageinput only on commands

* fix default error for messagesearchlistview

* fix thumbnail animation

* fix lint

* ignore example in linter

* update changelogs

* fix lint

* fix lint

* update stream_chat pana min

* add doc

Co-authored-by: Sahil Kumar <[email protected]>
Co-authored-by: Deven Joshi <[email protected]>
Co-authored-by: Neevash Ramdial (Nash) <[email protected]>
Co-authored-by: Nelson Nunes <[email protected]>
2021-03-09 18:58:23 +01:00
Salvatore Giordano 0dc6ba50d9 fix 2021-03-01 15:31:12 +01:00
Salvatore Giordano 3d43c84fbb fix update channel debounce 2021-03-01 13:15:39 +01:00
Salvatore Giordano c0271b2cb2 bump version 2021-03-01 12:56:27 +01:00
Salvatore Giordano b3f51115d5 remove future once it's completed 2021-03-01 12:51:19 +01:00
Salvatore Giordano b25c30d8f1 update changelogs 2021-03-01 12:04:07 +01:00
Salvatore Giordano 8d307e1185 bump version 2021-03-01 12:01:49 +01:00
Salvatore Giordano 074629a7f0 add support for named args 2021-03-01 11:59:20 +01:00
Salvatore Giordano b36c31c992 debounce updateAttachment 2021-03-01 11:55:37 +01:00
Salvatore Giordano ecb559f687 reduce calls to offlinestorage while uploading attachments using debounce 2021-03-01 11:52:32 +01:00
Salvatore Giordano 578c4efade fix ChannelState.addMessage 2021-03-01 10:12:41 +01:00
Salvatore Giordano a65df26626 fix lint 2021-02-26 17:12:03 +01:00
Salvatore Giordano b8e29cd88c update changelogs 2021-02-26 16:25:08 +01:00
Salvatore Giordano 7a1c470997 bump version 2021-02-26 16:21:09 +01:00
Sahil Kumar 3b8b0aa9fd flutter format
Signed-off-by: Sahil Kumar <[email protected]>
2021-02-26 19:37:04 +05:30
Sahil Kumar 81ba72bdcc [LLC] Fix tests
Signed-off-by: Sahil Kumar <[email protected]>
2021-02-26 19:36:31 +05:30
Sahil Kumar d0abad3a3b [LLC] Fix tests and minor refactoring
Signed-off-by: Sahil Kumar <[email protected]>
2021-02-26 19:33:14 +05:30
Sahil Kumar 4368327139 [LLC] Remove unwanted testing code
Signed-off-by: Sahil Kumar <[email protected]>
2021-02-26 18:52:29 +05:30
Sahil Kumar 81c2a514fb [LLC -> Client] Change queryChannel preferOffline default value to false
Signed-off-by: Sahil Kumar <[email protected]>
2021-02-26 18:46:51 +05:30
Sahil Kumar 771076c29c [LLC -> Client] Expose queryChannelsOnline and queryChannelsOffline
Signed-off-by: Sahil Kumar <[email protected]>
2021-02-26 18:35:26 +05:30
Sahil Kumar 623d48e32b Add custom sort support for offline channels
Signed-off-by: Sahil Kumar <[email protected]>
2021-02-26 18:30:22 +05:30
Salvatore Giordano f812fbbdc5 default to success and hide indicators if not needed 2021-02-26 13:23:24 +01:00
Salvatore Giordano f0efec30a3 review fix 2021-02-25 15:16:41 +01:00
Salvatore Giordano 209e0b1738 cleanup 2021-02-25 11:20:31 +01:00
Salvatore Giordano 628ec27b77 fix stackoverflow bug 2021-02-25 11:19:56 +01:00
Salvatore Giordano 75cdaaf062 add platform type to userAgent header 2021-02-25 10:43:54 +01:00
Salvatore Giordano 36d0c74a0d use updatechannelstate 2021-02-24 10:17:33 +01:00
Salvatore Giordano e0e25e7caf move cleaning logic to channel state 2021-02-23 17:42:52 +01:00
Salvatore Giordano b66a16c7f1 clear expired pinned messages 2021-02-23 13:37:13 +01:00
Salvatore Giordano 750c5305f4 update pinned messages 2021-02-23 13:19:31 +01:00
Sahil Kumar 6c501d875b [LLC -> Channel] Expose channel pinned messages in the form of getter and a stream
Signed-off-by: Sahil Kumar <[email protected]>
2021-02-22 19:46:44 +05:30
Sahil Kumar cf6ae8761e [Persistence] Add support for pinned messages
Signed-off-by: Sahil Kumar <[email protected]>
2021-02-22 17:39:23 +05:30
Salvatore Giordano 9ad78ab684 [llc] bump version 2021-02-19 17:27:35 +01:00
Salvatore GiordanoandGitHub 65d69cecce Merge branch 'master' into fix-attachment-upload-state 2021-02-19 16:52:45 +01:00
Salvatore GiordanoandGitHub dc74cccd4e Merge branch 'master' into fix-attachment-upload-state 2021-02-19 16:17:47 +01:00
Salvatore GiordanoandGitHub f36e1e8efd Merge branch 'master' into feat/pin-message 2021-02-19 16:17:38 +01:00
Sahil Kumar 4b18bf8f54 Add preparing state to attachment upload state
Signed-off-by: Sahil Kumar <[email protected]>
2021-02-19 20:01:08 +05:30
Sahil Kumar 0b58969d6f [Core -> Message] Add docComments
Signed-off-by: Sahil Kumar <[email protected]>
2021-02-19 18:16:58 +05:30
Sahil Kumar 0c04ac1ea7 [LLC] Fix tests
Signed-off-by: Sahil Kumar <[email protected]>
2021-02-19 17:59:32 +05:30
Sahil Kumar 259b8f2094 [LLC] Fix search functions
Signed-off-by: Sahil Kumar <[email protected]>
2021-02-19 17:06:45 +05:30