You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -65,7 +65,7 @@ This might be what you are looking for if:
65
65
66
66
***You did use WinWazzapMigrator to move from WP to Android**: This is what I did, and what was tested
67
67
68
-
***You moved to Android starting from scratch there a while ago, and now you want to bring back all your old WP messages to your current WhatsApp installation.**: This will likely be successful, although it wasn't tested.
68
+
***You moved to Android starting from scratch there a while ago, and now you want to bring back all your old WP messages to your current WhatsApp installation.**: This will likely be successful, although it wasn't tested by me (although [reports claim it works perfectly](https://github.com/ferferga/WhatsAppMigrationTools/issues/1#issuecomment-581165616))
69
69
70
70
***You still didn't move from WP and don't want to buy WinWazzapMigrator**: My process is much more difficult and less user-friendly than theirs, but it will likely succeed as well, although it isn't tested. I would say however that this has less chances of being successful than the 2nd case. But worth trying I suppose, you will learn a lot along the way :).
Copy file name to clipboardexpand all lines: merger/merger.py
+3-10
Original file line number
Diff line number
Diff line change
@@ -613,6 +613,8 @@ def optimize_database():
613
613
msgcount=msgcount+msgstore.fetchone()[0]
614
614
msgstore.execute("SELECT COUNT(message_row_id) FROM message_media")
615
615
msgcount=msgcount+msgstore.fetchone()[0] *2
616
+
msgstore.execute("SELECT COUNT(key_id) FROM messages_quotes WHERE key_id NOT IN (SELECT key_id FROM messages)")
617
+
msgcount=msgcount+msgstore.fetchone()[0]
616
618
print("\nNow backing up data into the temporary database...\n")
617
619
# Sometimes, quotes from groups into private chats and deleted messages might be still in messages_quotes while not present in messages, that means that we need
618
620
# to take care of them individually, in different loops, instead of doing them all at once in a single loop.
@@ -683,7 +685,7 @@ def optimize_database():
683
685
tmp.execute("INSERT INTO keys_relationship VALUES(?,?,?,?,?)", reg2)
684
686
except:
685
687
pass
686
-
msgstore.execute("SELECT key_id, _id FROM messages WHERE key_id NOT IN (SELECT key_id FROM messages)")
688
+
msgstore.execute("SELECT key_id, _id FROM messages_quotes WHERE key_id NOT IN (SELECT key_id FROM messages)")
687
689
forrowinmsgstore:
688
690
try:
689
691
new_quote_id=new_quotes_keys[row[0]]
@@ -1066,15 +1068,6 @@ def optimize_database():
1066
1068
loopcount=loopcount+1
1067
1069
bar.update(loopcount)
1068
1070
msgstore.execute("SELECT message_row_id FROM message_future")
1069
-
forrowinmsgstore:
1070
-
try:
1071
-
reg= (keys_relationship[int(row[0])], row[0])
1072
-
msgstore2.execute("UPDATE message_future SET message_row_id = ? WHERE message_row_id = ?", reg)
1073
-
except:
1074
-
pass
1075
-
loopcount=loopcount+1
1076
-
bar.update(loopcount)
1077
-
msgstore.execute("SELECT message_row_id FROM message_future")
0 commit comments