display sender name in reaction list
This commit is contained in:
@@ -241,6 +241,7 @@ export default class ChatModel {
|
|||||||
const reaction = ChatModel.createMessageReaction(
|
const reaction = ChatModel.createMessageReaction(
|
||||||
messageId,
|
messageId,
|
||||||
senderId,
|
senderId,
|
||||||
|
senderName,
|
||||||
content,
|
content,
|
||||||
isDeleting,
|
isDeleting,
|
||||||
);
|
);
|
||||||
@@ -439,6 +440,7 @@ export default class ChatModel {
|
|||||||
static createMessageReaction = (
|
static createMessageReaction = (
|
||||||
messageId: string,
|
messageId: string,
|
||||||
senderId: string,
|
senderId: string,
|
||||||
|
senderName: string,
|
||||||
content: ReactionSymbols,
|
content: ReactionSymbols,
|
||||||
isDeleting: boolean,
|
isDeleting: boolean,
|
||||||
): ChatMessageReaction => {
|
): ChatMessageReaction => {
|
||||||
@@ -450,6 +452,7 @@ export default class ChatModel {
|
|||||||
|
|
||||||
messageId,
|
messageId,
|
||||||
senderId,
|
senderId,
|
||||||
|
senderName,
|
||||||
content,
|
content,
|
||||||
isDeleting,
|
isDeleting,
|
||||||
};
|
};
|
||||||
@@ -510,6 +513,7 @@ export interface ChatMessageReaction
|
|||||||
extends ValidObject, FileContent<"reaction"> {
|
extends ValidObject, FileContent<"reaction"> {
|
||||||
readonly messageId: string;
|
readonly messageId: string;
|
||||||
readonly senderId: string;
|
readonly senderId: string;
|
||||||
|
readonly senderName: string;
|
||||||
readonly content: ReactionSymbols | string;
|
readonly content: ReactionSymbols | string;
|
||||||
isDeleting: boolean;
|
isDeleting: boolean;
|
||||||
}
|
}
|
||||||
@@ -559,6 +563,7 @@ export const ChatMessageReactionReference: ChatMessageReaction = {
|
|||||||
|
|
||||||
messageId: "",
|
messageId: "",
|
||||||
senderId: "",
|
senderId: "",
|
||||||
|
senderName: "",
|
||||||
content: "",
|
content: "",
|
||||||
|
|
||||||
isDeleting: false,
|
isDeleting: false,
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import { ChatMessageReaction } from "../../Model/Chat/chatModel";
|
|||||||
export function MessageReactionEntry(reaction: ChatMessageReaction) {
|
export function MessageReactionEntry(reaction: ChatMessageReaction) {
|
||||||
return (
|
return (
|
||||||
<div class="tile flex-row">
|
<div class="tile flex-row">
|
||||||
<span class="flex width-100">{reaction.senderId}</span>
|
<span class="flex width-100">{reaction.senderName}</span>
|
||||||
<span>{reaction.content}</span>
|
<span>{reaction.content}</span>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user