aboutsummaryrefslogtreecommitdiff
path: root/context.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Implement notifications + "mute/unmute chat" menuMiquel Lionel2021-12-291-1/+1
| | | | | | | | | | | | | | | - Added icons: Pinned and muted chats have icons. It's from Twemoji font, I've added credits in the README.md and source code of ChatlistItem.qml. I prefer to rely on .PNG for this one because icon might not be installed or exist on the system, and we avoid the black box problem. - Modified CMakeLists: added KNotifications as a required library - Modified build.sh: I cannot comprehend how the install(FILES) function from cmake works, so I used good old install from GNU coreutils. It copies usr/ structure and needed files (.desktop and .notifyrc) for KNotifications to work. - Aesthetic changes: context menu is shorter now due to the text being state-aware. You can now also mute a chat so you won't be notified on incoming messages.
* You can unblock people now and some small fixesMiquel Lionel2021-11-201-0/+28
| | | | | | | | | | - the chatlist is now properly updated on blocking a contact request or contact. - A small message is now displayed after blocking a contact request - A list of blocked contact can be found on the settings page, after clicking 'View blocked users' - The message timestamp is now slightly padded
* Implement sending Videochat invitationsMiquel Lionel2021-11-041-0/+6
| | | | | | - layers popping function was hard to read in main.qml, add a line - add editable videochat instance setting
* Add Message.setFile methodlink2xt1-5/+1
| | | | | This allows setting file from JavaScript, so C++ remains a thin wrapper to Delta Chat core API. sendMessage only calls dc_send_msg, and all the attachment logic goes to the JavaScript code.
* Do not copy attachments to blobdir manuallylink2xt1-10/+2
| | | | | | If QFile::copy() fails because blobdir already contains an image with the same file name (could be something common, e.g., "1.jpg"), we end up sending completely wrong file. Delta Chat core (dc_send_msg) already does the copying for us and resolves filename conflicts.
* Make attachment button functionalMiquel Lionel1-1/+16
|
* Add chatlist searchlink2xt2021-08-221-2/+7
|
* Add Context::createContactlink2xt2021-08-151-0/+8
|
* Use `dc_send_msg` to send messageslink2xt2021-08-071-0/+6
| | | | `dc_send_text_msg` is too limited as it can only send text without attachments.
* Add New Chat pagelink2xt2021-08-011-0/+19
|
* dc_unblock_chat() is replaced with dc_accept_chat()link2xt2021-07-261-2/+2
|
* Get rid of the contact requests chatlink2xt2021-07-261-6/+12
|
* Replace Accounts.importAccount() with Context.importBackup()link2xt2021-07-041-0/+7
| | | | dc_accounts_import_account() is going to be removed from the core.
* Make it possible to get a list of archived chatslink2xt2021-06-061-2/+2
|
* Reset draft after sending a messagelink2xt2021-05-311-1/+1
|
* Implement message draftslink2xt2021-05-291-0/+24
|
* Implement libdeltachat API for HTML viewlink2xt2021-05-221-0/+9
| | | | | | | | | | | | HTML API: - Context::getMessageHtml() - DcMessage::getSubject() - DcMessage::hasHtml() Also implemented: - DcMessage::getFilemime() - DcMessage::getShowPadlock() - DcMessage::getError()
* Mark displayed messages as seenlink2xt2021-03-191-0/+6
|
* Implement more context methodslink2xt2021-03-011-0/+27
|
* Add Context::marknoticedChat()link2xt2021-02-221-0/+5
|
* Add Context::getFreshMsgCnt()link2xt2021-02-221-0/+5
|
* Add Context::decideOnContactRequestlink2xt2021-02-221-0/+6
|
* Add Context::setChatMuteDurationlink2xt2021-02-221-0/+6
|
* Implement Context::setConfig()link2xt2021-02-191-0/+8
|
* Context: implement startIo, stopIo and maybeNetworklink2xt2021-02-191-0/+18
| | | | They are not supposed to be used as they can be called from account manager, just for completeness.
* Implement Context.getConfig()link2xt2020-11-051-0/+10
|
* Set parent for Contextlink2xt2020-10-271-2/+2
| | | | This fixes application termination when account is selected.
* Add Context::getMessageInfolink2xt2020-10-131-0/+9
|
* Initial commitlink2xt2020-10-031-0/+93