mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-22 06:08:07 +00:00
Calling conference from history.
This commit is contained in:
parent
abfac176c1
commit
c42d720c81
4 changed files with 15 additions and 9 deletions
|
|
@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
### Fixed
|
||||
- Section date timezone in chat.
|
||||
- Use custom font for chat compose area.
|
||||
- Calling conference from history.
|
||||
|
||||
## 5.0.15 - 2023-04-11
|
||||
|
||||
|
|
|
|||
|
|
@ -53,9 +53,11 @@ static inline void fillCallStartEntry (QVariantMap &dest, const shared_ptr<linph
|
|||
dest["isOutgoing"] = callLog->getDir() == linphone::Call::Dir::Outgoing;
|
||||
dest["status"] = static_cast<HistoryModel::CallStatus>(callLog->getStatus());
|
||||
dest["isStart"] = true;
|
||||
if(callLog->getConferenceInfo())
|
||||
if(callLog->getConferenceInfo()){
|
||||
dest["title"] = Utils::coreStringToAppString(callLog->getConferenceInfo()->getSubject());
|
||||
dest["sipAddress"] = Utils::coreStringToAppString(callLog->getRemoteAddress()->asString());
|
||||
dest["sipAddress"] = Utils::coreStringToAppString(callLog->getConferenceInfo()->getUri()->asString());
|
||||
}else
|
||||
dest["sipAddress"] = Utils::coreStringToAppString(callLog->getRemoteAddress()->asString());
|
||||
dest["callId"] = Utils::coreStringToAppString(callLog->getCallId());
|
||||
dest["wasConference"] = callLog->wasConference();
|
||||
}
|
||||
|
|
@ -66,9 +68,11 @@ static inline void fillCallEndEntry (QVariantMap &dest, const shared_ptr<linphon
|
|||
dest["isOutgoing"] = callLog->getDir() == linphone::Call::Dir::Outgoing;
|
||||
dest["status"] = static_cast<HistoryModel::CallStatus>(callLog->getStatus());
|
||||
dest["isStart"] = false;
|
||||
if(callLog->getConferenceInfo())
|
||||
if(callLog->getConferenceInfo()){
|
||||
dest["title"] = Utils::coreStringToAppString(callLog->getConferenceInfo()->getSubject());
|
||||
dest["sipAddress"] = Utils::coreStringToAppString(callLog->getRemoteAddress()->asString());
|
||||
dest["sipAddress"] = Utils::coreStringToAppString(callLog->getConferenceInfo()->getUri()->asString());
|
||||
}else
|
||||
dest["sipAddress"] = Utils::coreStringToAppString(callLog->getRemoteAddress()->asString());
|
||||
dest["callId"] = Utils::coreStringToAppString(callLog->getCallId());
|
||||
dest["wasConference"] = callLog->wasConference();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -138,8 +138,8 @@ Row {
|
|||
bold: true
|
||||
pointSize: HistoryStyle.entry.event.text.pointSize
|
||||
}
|
||||
height: parent.height
|
||||
text: $historyEntry.title
|
||||
height: parent.height
|
||||
text: $historyEntry && $historyEntry.title
|
||||
? $historyEntry.title
|
||||
: _sipAddressObserver
|
||||
? ( UtilsCpp.getDisplayName(_sipAddressObserver.peerAddress || $historyEntry.sipAddress) || _sipAddressObserver)
|
||||
|
|
|
|||
|
|
@ -64,6 +64,7 @@ ColumnLayout {
|
|||
? UtilsCpp.getDisplayName(historyView._sipAddressObserver.peerAddress)
|
||||
: null
|
||||
visible: peerAddress
|
||||
isOneToOne: !historyView.entry || !historyView.entry.wasConference
|
||||
}
|
||||
|
||||
ContactDescription {
|
||||
|
|
@ -86,7 +87,7 @@ ColumnLayout {
|
|||
ActionBar {
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
iconSize: HistoryViewStyle.bar.actions.call.iconSize
|
||||
visible: historyView.entry ? !historyView.entry.wasConference : false
|
||||
visible: historyView.entry || false
|
||||
|
||||
ActionButton {
|
||||
isCustom: true
|
||||
|
|
@ -110,7 +111,7 @@ ColumnLayout {
|
|||
backgroundRadius: 90
|
||||
colorSet: HistoryViewStyle.chat
|
||||
|
||||
visible: peerAddress && SettingsModel.standardChatEnabled && SettingsModel.getShowStartChatButton()
|
||||
visible: peerAddress && SettingsModel.standardChatEnabled && SettingsModel.getShowStartChatButton() && !historyView.entry.wasConference
|
||||
|
||||
onClicked: CallsListModel.launchChat(historyView.peerAddress, 0)
|
||||
}
|
||||
|
|
@ -118,7 +119,7 @@ ColumnLayout {
|
|||
isCustom: true
|
||||
backgroundRadius: 1000
|
||||
colorSet: HistoryViewStyle.chat
|
||||
visible: peerAddress && SettingsModel.secureChatEnabled && SettingsModel.getShowStartChatButton()
|
||||
visible: peerAddress && SettingsModel.secureChatEnabled && SettingsModel.getShowStartChatButton() && !historyView.entry.wasConference
|
||||
onClicked: CallsListModel.launchChat(historyView.peerAddress, 1)
|
||||
Icon{
|
||||
icon:'secure_level_1'
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue