Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add PartialVideo message type on sendMessage function #128

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
add PartialVideo message type on sendMessage function
  • Loading branch information
kopianan committed Apr 11, 2024
commit 2c66a6ae19f67a0b726e9cd7103e4c71f7238f90
6 changes: 6 additions & 0 deletions lib/src/firebase_chat_core.dart
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,12 @@ class FirebaseChatCore {
id: '',
partialText: partialMessage,
);
} else if (partialMessage is types.PartialVideo) {
message = types.VideoMessage.fromPartial(
author: types.User(id: firebaseUser!.uid),
id: '',
partialVideo: partialMessage,
);
}

if (message != null) {
Expand Down