~aleteoryx/muditaos

0974e41f70f55b029b76348c7279751b48d9ce43 — Michał Kamoń 5 years ago 8bab7f0
[EGD-2778] fixed missing phone number

Phone number was missing in delete message thread confirmation window for threads with temporary contacts
2 files changed, 7 insertions(+), 6 deletions(-)

M changelog.md
M module-apps/application-messages/ApplicationMessages.cpp
M changelog.md => changelog.md +2 -1
@@ 18,11 18,12 @@

### Fixed

* `[GUI][messages]` Fixed not showing number on deleting temporary contact
* `[GUI]` Fixed filling Label with color

## [0.44.1 2020-10-30]

### Added
### Addedgit 

* `[settings][bluetooth]` Add "Phone name" window.
* `[cellular]` Add support for modem reset.

M module-apps/application-messages/ApplicationMessages.cpp => module-apps/application-messages/ApplicationMessages.cpp +5 -5
@@ 185,16 185,16 @@ namespace app
        }
        LOG_DEBUG("Removing thread: %" PRIu32, record->ID);

        auto query = std::make_unique<ContactGetByID>(record->contactID);
        auto query = std::make_unique<ContactGetByID>(record->contactID, true);
        query->setQueryListener(db::QueryCallback::fromFunction([this, record](auto response) {
            auto result = dynamic_cast<ContactGetByIDResult *>(response);
            if (result != nullptr) {
                const auto &contact = result->getResult();
                gui::DialogMetadata meta;
                meta.action         = [this, record]() { return onRemoveSmsThreadConfirmed(*record); };
                meta.text           = utils::localize.get("app_messages_thread_delete_confirmation");
                meta.title          = contact.getFormattedName();
                meta.icon           = "phonebook_contact_delete_trashcan";
                meta.action = [this, record]() { return onRemoveSmsThreadConfirmed(*record); };
                meta.text   = utils::localize.get("app_messages_thread_delete_confirmation");
                meta.title  = contact.getFormattedName();
                meta.icon   = "phonebook_contact_delete_trashcan";
                switchWindow(gui::name::window::dialog_yes_no, std::make_unique<gui::DialogMetadataMessage>(meta));
                return true;
            }