mirror of
https://git.jami.net/savoirfairelinux/jami-daemon.git
synced 2025-08-12 22:09:25 +08:00
swarm: relink setMessageDisplayed
Change-Id: Ic1e002a1e8edf79c5c392e707dd857c7e88667ec GitLab: #319
This commit is contained in:
@ -330,10 +330,10 @@ registeredNameFound(const std::string& accountId,
|
||||
uv_async_send(&signalAsync);
|
||||
}
|
||||
|
||||
void accountMessageStatusChanged(const std::string& account_id, uint64_t message_id, const std::string& to, int state) {
|
||||
void accountMessageStatusChanged(const std::string& account_id, const std::string& message_id, const std::string& conversationId, const std::string& peer, int state) {
|
||||
|
||||
std::lock_guard<std::mutex> lock(pendingSignalsLock);
|
||||
pendingSignals.emplace([account_id, message_id, to, state]() {
|
||||
pendingSignals.emplace([account_id, message_id, peer, state]() {
|
||||
Local<Function> func = Local<Function>::New(Isolate::GetCurrent(), accountMessageStatusChangedCb);
|
||||
if (!func.IsEmpty()) {
|
||||
Local<Value> callback_args[] = {V8_STRING_NEW_LOCAL(account_id), SWIGV8_INTEGER_NEW_UNS(message_id), V8_STRING_NEW_LOCAL(to), SWIGV8_INTEGER_NEW(state)};
|
||||
|
@ -33,7 +33,8 @@ public:
|
||||
virtual void registrationStateChanged(const std::string& account_id, const std::string& state, int code, const std::string& detail_str){}
|
||||
virtual void volatileAccountDetailsChanged(const std::string& account_id, const std::map<std::string, std::string>& details){}
|
||||
virtual void incomingAccountMessage(const std::string& /*account_id*/, const std::string& /*from*/, const std::map<std::string, std::string>& /*payload*/){}
|
||||
virtual void accountMessageStatusChanged(const std::string& /*account_id*/, uint64_t /*message_id*/, const std::string& /*to*/, int /*state*/){}
|
||||
virtual void accountMessageStatusChanged(const std::string& /*account_id*/, const std::string& /*message_id*/, const std::string& /*conversationId*/, const std::string& /*peer*/, int /*state*/){}
|
||||
virtual void profileReceived(const std::string& /*account_id*/, const std::string& /*from*/, const std::string& /*path*/){}
|
||||
virtual void knownDevicesChanged(const std::string& /*account_id*/, const std::map<std::string, std::string>& /*devices*/){}
|
||||
virtual void exportOnRingEnded(const std::string& /*account_id*/, int /*state*/, const std::string& /*pin*/){}
|
||||
|
||||
@ -90,7 +91,7 @@ std::vector<Message> getLastMessages(const std::string& accountID, const uint64_
|
||||
int getMessageStatus(uint64_t id);
|
||||
int getMessageStatus(const std::string& accountID, uint64_t id);
|
||||
bool cancelMessage(const std::string& accountID, uint64_t id);
|
||||
bool setMessageDisplayed(const std::string& accountID, const std::string& contactId, const std::string& messageId, int status);
|
||||
bool setMessageDisplayed(const std::string& accountID, const std::string& conversationUri, const std::string& messageId, int status);
|
||||
bool lookupName(const std::string& account, const std::string& nameserver, const std::string& name);
|
||||
bool lookupAddress(const std::string& account, const std::string& nameserver, const std::string& address);
|
||||
bool registerName(const std::string& account, const std::string& password, const std::string& name);
|
||||
@ -231,7 +232,12 @@ public:
|
||||
virtual void registrationStateChanged(const std::string& account_id, const std::string& state, int code, const std::string& detail_str){}
|
||||
virtual void volatileAccountDetailsChanged(const std::string& account_id, const std::map<std::string, std::string>& details){}
|
||||
virtual void incomingAccountMessage(const std::string& /*account_id*/, const std::string& /*from*/, const std::map<std::string, std::string>& /*payload*/){}
|
||||
<<<<<<< HEAD
|
||||
virtual void accountMessageStatusChanged(const std::string& /*account_id*/, uint64_t /*message_id*/, const std::string& /*to*/, int /*state*/){}
|
||||
=======
|
||||
virtual void accountMessageStatusChanged(const std::string& /*account_id*/, const std::string& /*message_id*/, const std::string& /*conversationId*/, const std::string& /*peer*/, int /*state*/){}
|
||||
virtual void profileReceived(const std::string& /*account_id*/, const std::string& /*from*/, const std::string& /*path*/){}
|
||||
>>>>>>> 503df0a61 (swarm: relink setMessageDisplayed)
|
||||
virtual void knownDevicesChanged(const std::string& /*account_id*/, const std::map<std::string, std::string>& /*devices*/){}
|
||||
virtual void exportOnRingEnded(const std::string& /*account_id*/, int /*state*/, const std::string& /*pin*/){}
|
||||
|
||||
|
@ -139,7 +139,8 @@ void init(const SWIGV8_VALUE& funcMap){
|
||||
exportable_callback<ConfigurationSignal::VolatileDetailsChanged>(bind(&volatileDetailsChanged, _1, _2)),
|
||||
exportable_callback<ConfigurationSignal::KnownDevicesChanged>(bind(&knownDevicesChanged, _1, _2 )),
|
||||
exportable_callback<ConfigurationSignal::IncomingAccountMessage>(bind(&incomingAccountMessage, _1, _2, _3, _4 )),
|
||||
exportable_callback<ConfigurationSignal::AccountMessageStatusChanged>(bind(&accountMessageStatusChanged, _1, _2, _3, _4 )),
|
||||
exportable_callback<ConfigurationSignal::AccountMessageStatusChanged>(bind(&accountMessageStatusChanged, _1, _2, _3, _4, _5 )),
|
||||
exportable_callback<ConfigurationSignal::ProfileReceived>(bind(&profileReceived, _1, _2, _3, _4 )),
|
||||
exportable_callback<ConfigurationSignal::IncomingTrustRequest>(bind(&incomingTrustRequest, _1, _2, _3, _4 )),
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user