mirror of
https://github.com/celisej567/abaddon.git
synced 2026-09-19 20:11:59 +03:00
fix some crashes
- crash when assuming group dms have someone other than urself - crash from lifetime error with user note update
This commit is contained in:
@@ -176,10 +176,11 @@ ProfileUserInfoPane::ProfileUserInfoPane(Snowflake ID)
|
||||
});
|
||||
|
||||
auto &discord = Abaddon::Get().GetDiscordClient();
|
||||
discord.signal_note_update().connect([this](Snowflake id, std::string note) {
|
||||
auto note_update_cb = [this](Snowflake id, std::string note) {
|
||||
if (id == UserID)
|
||||
m_note.SetNote(note);
|
||||
});
|
||||
};
|
||||
discord.signal_note_update().connect(sigc::track_obj(note_update_cb, m_note));
|
||||
|
||||
auto fetch_note_cb = [this](const std::string ¬e) {
|
||||
m_note.SetNote(note);
|
||||
|
||||
Reference in New Issue
Block a user