bugfix: files: fix file receiving

also write recieved file size in msg-history