getMessageBubbleColor

Determines the background color of the message bubble based on the message content and ownership.

Return

A color for the message bubble.

Parameters

message

The message data.

ownsMessage

Indicates if the current user owns the message.