2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-10-15 14:26:04 +00:00

Export chat messages text.

This commit is contained in:
John Preston
2018-06-13 16:12:36 +03:00
parent 35ffc03988
commit 2b36dd660b
10 changed files with 418 additions and 72 deletions

View File

@@ -17,6 +17,10 @@ namespace Output {
File::File(const QString &path) : _path(path) {
}
bool File::empty() const {
return !_offset;
}
File::Result File::writeBlock(const QByteArray &block) {
const auto result = writeBlockAttempt(block);
if (result != Result::Success) {