Skip to content

Commit

Permalink
add support for viewing cached whatsapp messages while offline
Browse files Browse the repository at this point in the history
  • Loading branch information
d99kris committed Apr 20, 2024
1 parent 1621aff commit 421381c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion lib/common/src/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@

#pragma once

#define NCHAT_VERSION "4.54"
#define NCHAT_VERSION "4.55"
2 changes: 1 addition & 1 deletion src/nchat.1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man.
.TH NCHAT "1" "April 2024" "nchat v4.54" "User Commands"
.TH NCHAT "1" "April 2024" "nchat v4.55" "User Commands"
.SH NAME
nchat \- ncurses chat
.SH SYNOPSIS
Expand Down
16 changes: 8 additions & 8 deletions src/uimodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1515,16 +1515,16 @@ void UiModel::MessageHandler(std::shared_ptr<ServiceMessage> p_ServiceMessage)
case ConnectNotifyType:
{
std::shared_ptr<ConnectNotify> connectNotify = std::static_pointer_cast<ConnectNotify>(p_ServiceMessage);
if (connectNotify->success)
LOG_TRACE("connect notify %d", connectNotify->success);
if (!HasProtocolFeature(profileId, FeatureAutoGetChatsOnLogin))
{
LOG_TRACE("connected");
if (!HasProtocolFeature(profileId, FeatureAutoGetChatsOnLogin))
{
std::shared_ptr<GetChatsRequest> getChatsRequest = std::make_shared<GetChatsRequest>();
LOG_TRACE("get chats");
SendProtocolRequest(profileId, getChatsRequest);
}
std::shared_ptr<GetChatsRequest> getChatsRequest = std::make_shared<GetChatsRequest>();
LOG_TRACE("get chats");
SendProtocolRequest(profileId, getChatsRequest);
}

if (connectNotify->success)
{
SetStatusOnline(profileId, true);
}
}
Expand Down

0 comments on commit 421381c

Please sign in to comment.