mirror of
https://github.com/chatmail/core.git
synced 2026-05-07 08:56:30 +03:00
jsonrpc: add viewType to quoted message(MessageQuote type) in Message object type (#3651)
* jsonrpc: add `viewType` to quoted message(`MessageQuote` type) in `Message` object type * add pr number to changelog
This commit is contained in:
@@ -37,6 +37,7 @@
|
|||||||
- jsonrpc: add type: #3641, #3645
|
- jsonrpc: add type: #3641, #3645
|
||||||
- `MessageSearchResult`
|
- `MessageSearchResult`
|
||||||
- `Location`
|
- `Location`
|
||||||
|
- jsonrpc: add `viewType` to quoted message(`MessageQuote` type) in `Message` object type #3651
|
||||||
|
|
||||||
|
|
||||||
### Changes
|
### Changes
|
||||||
|
|||||||
@@ -81,6 +81,7 @@ enum MessageQuote {
|
|||||||
override_sender_name: Option<String>,
|
override_sender_name: Option<String>,
|
||||||
image: Option<String>,
|
image: Option<String>,
|
||||||
is_forwarded: bool,
|
is_forwarded: bool,
|
||||||
|
view_type: MessageViewtype,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -129,6 +130,7 @@ impl MessageObject {
|
|||||||
None
|
None
|
||||||
},
|
},
|
||||||
is_forwarded: quote.is_forwarded(),
|
is_forwarded: quote.is_forwarded(),
|
||||||
|
view_type: quote.get_viewtype().into(),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
None => Some(MessageQuote::JustText { text: quoted_text }),
|
None => Some(MessageQuote::JustText { text: quoted_text }),
|
||||||
|
|||||||
@@ -62,7 +62,6 @@ export type MessageListItem=(({"kind":"message";}&{"msg_id":U32;})|({
|
|||||||
* Marker timestamp, for day markers, in unix milliseconds
|
* Marker timestamp, for day markers, in unix milliseconds
|
||||||
*/
|
*/
|
||||||
"timestamp":I64;}));
|
"timestamp":I64;}));
|
||||||
export type MessageQuote=(({"kind":"JustText";}&{"text":string;})|({"kind":"WithMessage";}&{"text":string;"messageId":U32;"authorDisplayName":string;"authorDisplayColor":string;"overrideSenderName":(string|null);"image":(string|null);"isForwarded":boolean;}));
|
|
||||||
export type Viewtype=("Unknown"|
|
export type Viewtype=("Unknown"|
|
||||||
/**
|
/**
|
||||||
* Text message.
|
* Text message.
|
||||||
@@ -108,6 +107,7 @@ export type Viewtype=("Unknown"|
|
|||||||
* Message is an webxdc instance.
|
* Message is an webxdc instance.
|
||||||
*/
|
*/
|
||||||
"Webxdc");
|
"Webxdc");
|
||||||
|
export type MessageQuote=(({"kind":"JustText";}&{"text":string;})|({"kind":"WithMessage";}&{"text":string;"messageId":U32;"authorDisplayName":string;"authorDisplayColor":string;"overrideSenderName":(string|null);"image":(string|null);"isForwarded":boolean;"viewType":Viewtype;}));
|
||||||
export type I32=number;
|
export type I32=number;
|
||||||
export type WebxdcMessageInfo={
|
export type WebxdcMessageInfo={
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user