mirror of
https://github.com/ArcaneChat/core.git
synced 2026-07-03 14:05:33 +02:00
change welcome image
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 121 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 430 KiB |
+4
-4
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user