forked from lubuwest/Friendiqa
bugfixes timeline refresh and screenshots
This commit is contained in:
parent
5032c78de1
commit
4ffae4ac31
13 changed files with 46 additions and 101 deletions
|
@ -220,7 +220,7 @@ Rectangle{
|
|||
Rectangle{
|
||||
color: Material.backgroundColor
|
||||
radius: 0.5*mm
|
||||
visible:(newsSwipeview.stacktype!="Notifications")
|
||||
visible:(conversation || (newsSwipeview.stacktype!="Notifications"))
|
||||
x:mm
|
||||
width: parent.width-2*mm
|
||||
height:Math.max(bodyField.contentHeight+4*mm,2.5*root.fontFactor*osSettings.bigFontSize)
|
||||
|
|
|
@ -140,7 +140,6 @@ Rectangle{
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
function showNews(newsToShow){
|
||||
try{if (rootstackView.depth>1){rootstackView.pop()}}catch(e){}
|
||||
newsBusy.running=false;
|
||||
|
@ -153,8 +152,6 @@ Rectangle{
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
function search(term){
|
||||
if (term!=""){
|
||||
newstabstatus="Search";
|
||||
|
@ -175,10 +172,8 @@ Rectangle{
|
|||
try{var oldnewsitemobject=newsModel.get(newsModel.count-1).newsitemobject;
|
||||
if(oldnewsitemobject.hasOwnProperty("lastcomment")){
|
||||
var lastnews_id=oldnewsitemobject.lastcomment.created_at;
|
||||
//var lastconv_id=oldnewsitemobject.lastcomment.statusnet_conversation_id
|
||||
}else{
|
||||
var lastnews_id=oldnewsitemobject.created_at;
|
||||
//var lastconv_id=oldnewsitemobject.statusnet_conversation_id
|
||||
}
|
||||
} catch(e){print(e);var lastnews_id=99999999999999}
|
||||
var messagetype=0;
|
||||
|
@ -345,23 +340,29 @@ Rectangle{
|
|||
} else if (newstab.newstabstatus=="Conversations" || newstabstatus=="Conversations"){
|
||||
newsStack.updateMethodNews="conversation"}
|
||||
else {newsStack.updateMethodNews="refresh"}
|
||||
let currentnewstabstatus="Conversations";
|
||||
if (newstab.newstabstatus!=""){
|
||||
currentnewstabstatus=newstab.newstabstatus
|
||||
}else if (newstabstatus!=""){
|
||||
currentnewstabstatus=newstabstatus
|
||||
}
|
||||
|
||||
if (newsSwipeview.stacktype=="Home"){
|
||||
Newsjs.getLastNews(root.login,root.db,function(currentlastnews){
|
||||
if (currentlastnews>lastnewsid){
|
||||
if(newstab.newstabstatus=="Timeline"){
|
||||
if(currentnewstabstatus=="Timeline"){
|
||||
try{ Newsjs.newsfromdb(root.db,root.login,0, function(dbnews,lastid){
|
||||
lastnewsid=lastid;
|
||||
showNews(dbnews)
|
||||
})}catch(e){Helperjs.showMessage("Error",e,root)};
|
||||
}
|
||||
if(newstab.newstabstatus=="Conversations"){
|
||||
if(currentnewstabstatus=="Conversations"){
|
||||
Newsjs.chatsfromdb(db,root.login,0,[],function(news,lastid){
|
||||
lastnewsid=lastid;
|
||||
showNews(news)});
|
||||
}
|
||||
} else {print("newstab.newstabstatus "+newstab.newstabstatus)
|
||||
Service.updateView(newstab.newstabstatus)
|
||||
} else {
|
||||
Service.updateView(currentnewstabstatus)
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
@ -130,8 +130,6 @@ Rectangle{
|
|||
// anchors.left: newsSwipeview.right
|
||||
// }
|
||||
BlueButton{
|
||||
x:mm
|
||||
y:mm
|
||||
z:2
|
||||
visible: !wideScreen
|
||||
fontColor: "grey"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue