mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-19 09:00:54 +00:00
add sigchat.status.initializing
This commit is contained in:
parent
146666cb0e
commit
59895ac525
2 changed files with 7 additions and 0 deletions
|
|
@ -66,6 +66,10 @@
|
||||||
"en": "connecting",
|
"en": "connecting",
|
||||||
"en-tts": "connecting"
|
"en-tts": "connecting"
|
||||||
},
|
},
|
||||||
|
"sigchat.status.initializing": {
|
||||||
|
"en": "initializing Signal account in pddb",
|
||||||
|
"en-tts": "initializing Signal account in pddb"
|
||||||
|
},
|
||||||
"sigchat.status.offline": {
|
"sigchat.status.offline": {
|
||||||
"en": "Signal offline",
|
"en": "Signal offline",
|
||||||
"en-tts": "Signal offline"
|
"en-tts": "Signal offline"
|
||||||
|
|
|
||||||
|
|
@ -205,6 +205,9 @@ impl<'a> SigChat<'a> {
|
||||||
///
|
///
|
||||||
pub fn account_link(&mut self, host: &str) -> Result<Account, Error> {
|
pub fn account_link(&mut self, host: &str) -> Result<Account, Error> {
|
||||||
log::info!("Attempting to Link to an existing Signal Account");
|
log::info!("Attempting to Link to an existing Signal Account");
|
||||||
|
self.chat
|
||||||
|
.set_status_text(t!("sigchat.status.initializing", locales::LANG));
|
||||||
|
self.chat.set_busy_state(true);
|
||||||
match Account::new(SIGCHAT_ACCOUNT) {
|
match Account::new(SIGCHAT_ACCOUNT) {
|
||||||
Ok(account) => {
|
Ok(account) => {
|
||||||
let mut manager = Manager::new(account, TrustMode::OnFirstUse);
|
let mut manager = Manager::new(account, TrustMode::OnFirstUse);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue