Finish PM composer cleanup and skip history requests after shutdown
This commit is contained in:
1 parent
07834a1261
commit
c9bfc2a70b
2 files changed
+5
No files matched your search
@@ -1493,6 +1493,9 @@ QString MessageList::dmConvId(const QString& channelId) {
|
||||
|
||||
void MessageList::requestDmMessages(const QString& channelId) {
|
||||
if (!m_currentDmGeneration || m_dmDeleting.value(dmConvId(channelId)) == m_currentDmGeneration) return;
|
||||
if (!gui_bridge_get_inst() || !gui_bridge_is_uasync_ready()) {
|
||||
GUI_WARN("PM history request skipped: core unavailable target=%s", qPrintable(channelId)); return;
|
||||
}
|
||||
QString conv = dmConvId(channelId);
|
||||
struct dm_messages_req* req = (struct dm_messages_req*)u_malloc(sizeof(*req));
|
||||
if (!req) return;
|
||||
|
||||
Reference in new issue
Block a user