update
This commit is contained in:
@@ -141,6 +141,7 @@ interface NextcloudChatMessage {
|
||||
messageParameters: Record<string, any>;
|
||||
reactions: Record<string, any>;
|
||||
reactionsSelf: string[];
|
||||
parent?: NextcloudChatMessage;
|
||||
}
|
||||
|
||||
async function getAllConversations(loginName: string, appPassword: string): Promise<NextcloudConversation[]> {
|
||||
@@ -259,6 +260,20 @@ async function getMessages(token: string, loginName: string, appPassword: string
|
||||
messageParameters: m.messageParameters ?? {},
|
||||
reactions: m.reactions ?? {},
|
||||
reactionsSelf: m.reactionsSelf ?? [],
|
||||
...(m.parent ? { parent: {
|
||||
id: m.parent.id,
|
||||
token: m.parent.token,
|
||||
actorType: m.parent.actorType,
|
||||
actorId: m.parent.actorId,
|
||||
actorDisplayName: m.parent.actorDisplayName,
|
||||
message: m.parent.message,
|
||||
timestamp: m.parent.timestamp,
|
||||
messageType: m.parent.messageType ?? '',
|
||||
systemMessage: m.parent.systemMessage ?? '',
|
||||
messageParameters: m.parent.messageParameters ?? {},
|
||||
reactions: m.parent.reactions ?? {},
|
||||
reactionsSelf: m.parent.reactionsSelf ?? [],
|
||||
}} : {}),
|
||||
}));
|
||||
} catch (error) {
|
||||
if (axios.isAxiosError(error) && error.response?.status === 401) {
|
||||
|
||||
Reference in New Issue
Block a user