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

Ask a question about the display location of the message content #45

Closed
gaoyong06 opened this issue Mar 31, 2020 · 2 comments
Closed

Ask a question about the display location of the message content #45

gaoyong06 opened this issue Mar 31, 2020 · 2 comments

Comments

@gaoyong06
Copy link

gaoyong06 commented Mar 31, 2020

Ask a question about the display location of the message content, the message is either displayed on the left or on the right, but I don't see the parameters related to the control of this location, do the following test, just swap the uid of the following two messages, the location of the message is also interchanged, the trouble tells you how to control the display location, Or what the rules that control the location are, thank you very much.

`

ChatMessage message1 = ChatMessage(
text: "Hello",
user: ChatUser(
name: "Fayeed",
uid: "2262561",
),
createdAt: DateTime.now(),
);

ChatMessage message2 = ChatMessage(
    text: "Hello2",
    user: ChatUser(
      name: "Fayeed2",
      uid: "123456789",
    ),
    createdAt: DateTime.now(),
);

`

@fayeed
Copy link
Owner

fayeed commented Mar 31, 2020

The uid passed to the Dashchat widget is compared with the ChatMessage's user.uid if they match the message is placed on the right if not on the left.

@gaoyong06
Copy link
Author

The uid passed to the Dashchat widget is compared with the ChatMessage's user.uid if they match the message is placed on the right if not on the left.

done! thank you very much

@fayeed fayeed closed this as completed Apr 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants