|
@@ -93,12 +93,13 @@ export class WriteTweetPage {
|
|
console.log("retweeted tweet", this.retweet);
|
|
console.log("retweeted tweet", this.retweet);
|
|
} else {
|
|
} else {
|
|
this.retweet = await this.twitter.fetchTweet(this.retweetId);
|
|
this.retweet = await this.twitter.fetchTweet(this.retweetId);
|
|
- console.log('this.retweet is:', this.retweet);
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (this.replyToStatusId) {
|
|
if (this.replyToStatusId) {
|
|
- if (this.storage.get("mockup"))
|
|
|
|
|
|
+ if (this.storage.get("mockup")){
|
|
console.log("replying in mockup");
|
|
console.log("replying in mockup");
|
|
|
|
+ this.replyTweet = await this.mockProv.fetchTweet(this.replyToStatusId);
|
|
|
|
+ }
|
|
else
|
|
else
|
|
this.replyTweet = await this.twitter.fetchTweet(this.replyToStatusId);
|
|
this.replyTweet = await this.twitter.fetchTweet(this.replyToStatusId);
|
|
console.log('this.replyTweet is:', this.replyTweet);
|
|
console.log('this.replyTweet is:', this.replyTweet);
|
|
@@ -134,20 +135,15 @@ export class WriteTweetPage {
|
|
}
|
|
}
|
|
|
|
|
|
async submitTweet() {
|
|
async submitTweet() {
|
|
- console.log('submitting tweet');
|
|
|
|
const loading = this.loadingCtrl.create();
|
|
const loading = this.loadingCtrl.create();
|
|
loading.present();
|
|
loading.present();
|
|
- console.log("storage mockup value: ", this.storage.get("mockup"));
|
|
|
|
if (await this.storage.get("mockup")) {
|
|
if (await this.storage.get("mockup")) {
|
|
console.log('value of the tweet is:', this.tweet.value);
|
|
console.log('value of the tweet is:', this.tweet.value);
|
|
- console.log('publishing tweet for mock', this.tweet.value["text"]);
|
|
|
|
await this.mockProv.writeTweet(this.tweet.value["text"],
|
|
await this.mockProv.writeTweet(this.tweet.value["text"],
|
|
this.tweet.value.p2p,
|
|
this.tweet.value.p2p,
|
|
this.retweet,
|
|
this.retweet,
|
|
- this.replyToStatusId);
|
|
|
|
- // loading.dismiss();
|
|
|
|
|
|
+ this.replyTweet);
|
|
} else {
|
|
} else {
|
|
- console.log('in else ');
|
|
|
|
if (this.tweet.value.p2p) {
|
|
if (this.tweet.value.p2p) {
|
|
loading.setContent("Validate keys...");
|
|
loading.setContent("Validate keys...");
|
|
if (
|
|
if (
|