Hocuri
69fbb98f3c
api: Add Message::new_text() ( #6123 )
...
This adds a function to `Message`:
```rust
pub fn new_text(text: String) -> Self {
Message {
viewtype: Viewtype::Text,
text,
..Default::default()
}
}
```
I keep expecting that a function like this must exist and being
surprised that it doesn't.
Open question is whether it should be `pub` or `pub(crate)` - I made it
`pub` for now because it may be useful for others and we currently we
aren't thinking about the Rust API that much, anyway, but I can make it
`pub(crate)`, too (then it can't be used in deltachat-jsonrpc and
deltachat-repl).
I replaced some usages of Message::new(Viewtype::Text), but not all yet,
I'm going to do this in a follow-up, which will remove another around 65
LOC.
2024-10-29 16:22:52 +01:00
..
2024-08-08 00:15:08 +00:00
2024-10-21 21:35:03 +02:00
2024-10-20 18:36:37 +00:00
2024-10-05 17:58:24 +00:00
2024-10-24 16:43:10 +00:00
2024-09-13 17:58:25 +00:00
2024-09-08 07:08:12 +00:00
2024-10-14 21:22:11 -03:00
2024-04-16 19:01:25 +02:00
2024-10-21 13:03:58 +00:00
2024-10-20 18:36:37 +00:00
2024-10-21 19:14:37 +00:00
2024-10-25 14:20:09 -03:00
2024-04-20 18:09:35 +02:00
2024-10-26 16:38:43 +00:00
2023-11-19 06:22:25 +00:00
2024-05-05 21:23:32 +00:00
2024-10-15 09:14:23 +00:00
2024-10-29 16:22:52 +01:00
2024-07-26 23:57:21 +00:00
2024-05-15 21:07:24 -03:00
2024-10-22 09:43:36 +02:00
2024-10-25 13:14:37 -03:00
2024-10-24 16:43:10 +00:00
2024-09-01 16:10:30 +00:00
2024-10-22 09:43:36 +02:00
2024-04-07 22:08:48 -03:00
2024-10-18 15:36:21 +00:00
2024-07-02 18:52:29 -03:00
2024-10-19 11:48:45 -03:00
2024-03-04 21:07:10 +00:00
2024-10-04 14:43:06 +00:00
2024-05-21 22:05:48 +00:00
2023-03-03 18:40:36 +00:00
2024-08-06 11:33:22 -03:00
2024-04-04 17:01:15 +00:00
2024-10-25 13:14:37 -03:00
2024-10-05 17:58:24 +00:00
2024-09-16 17:00:16 +00:00
2024-09-12 00:22:09 +00:00
2024-07-02 18:52:29 -03:00
2023-03-31 12:15:17 +02:00
2024-09-12 00:22:09 +00:00
2024-10-29 16:22:52 +01:00
2024-10-23 22:33:09 +00:00
2024-10-28 12:30:29 -03:00
2024-10-20 18:36:37 +00:00
2024-09-13 17:58:25 +00:00
2024-06-12 13:10:34 -03:00
2024-10-25 19:25:51 +00:00
2024-10-18 15:36:21 +00:00
2024-10-15 09:14:23 +00:00
2023-08-25 23:04:47 +00:00
2024-09-02 22:57:31 +00:00
2024-10-26 16:38:43 +00:00
2024-10-23 01:43:50 +02:00
2024-10-24 16:43:10 +00:00
2024-10-17 14:29:03 +00:00
2024-10-21 21:35:03 +02:00
2024-10-25 19:25:51 +00:00
2023-04-06 22:00:02 -04:00
2024-10-04 21:54:42 +00:00
2024-10-24 16:43:10 +00:00
2024-08-28 16:05:03 +00:00
2024-10-29 13:55:15 +01:00
2024-10-22 23:23:57 +00:00
2024-08-29 20:59:41 +00:00
2024-07-22 18:25:15 -03:00
2024-09-20 17:07:45 -03:00
2024-10-21 21:35:03 +02:00
2023-07-09 14:06:45 +02:00
2024-10-17 22:22:14 +00:00
2024-09-16 16:40:26 -03:00
2024-09-20 22:38:28 +00:00
2024-06-28 14:36:09 +02:00
2024-10-11 00:17:40 +00:00