Add "image" flag to all picture messages
This commit is contained in:
parent
d755992821
commit
210741de43
1 changed files with 2 additions and 2 deletions
|
@ -163,9 +163,9 @@ void on_message_load_photo (struct tgl_state *TLS, void *extra, int success, cha
|
|||
case TGL_PEER_USER:
|
||||
debug ("PEER_USER\n");
|
||||
if (our_msg(TLS, M)) {
|
||||
p2tgl_got_im (TLS, M->to_id, image, PURPLE_MESSAGE_SEND, M->date);
|
||||
p2tgl_got_im (TLS, M->to_id, image, PURPLE_MESSAGE_SEND | PURPLE_MESSAGE_IMAGES, M->date);
|
||||
} else {
|
||||
p2tgl_got_im (TLS, M->from_id, image, PURPLE_MESSAGE_RECV, M->date);
|
||||
p2tgl_got_im (TLS, M->from_id, image, PURPLE_MESSAGE_RECV | PURPLE_MESSAGE_IMAGES, M->date);
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue