change welcome image

This commit is contained in:
adbenitez
2025-12-13 11:50:06 +01:00
parent 079cd8f287
commit 8b342acdbb
3 changed files with 4 additions and 4 deletions
Binary file not shown.

Before

Width:  |  Height:  |  Size: 121 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 430 KiB

+4 -4
View File
@@ -1288,11 +1288,11 @@ impl Context {
// add welcome-messages. by the label, this is done only once,
// if the user has deleted the message or the chat, it is not added again.
let image = include_bytes!("../assets/welcome-image.jpg");
let blob = BlobObject::create_and_deduplicate_from_bytes(self, image, "welcome.jpg")?;
let mut msg = Message::new(Viewtype::Image);
let image = include_bytes!("../assets/welcome-image.png");
let blob = BlobObject::create_and_deduplicate_from_bytes(self, image, "welcome.png")?;
let mut msg = Message::new(Viewtype::Sticker);
msg.param.set(Param::File, blob.as_name());
msg.param.set(Param::Filename, "welcome-image.jpg");
msg.param.set(Param::Filename, "welcome-image.png");
chat::add_device_msg(self, Some("core-welcome-image"), Some(&mut msg)).await?;
let mut msg = Message::new_text(welcome_message(self).await);