Commit b3b0298
committed
SmsInboxAPI: print messages in opposite order
With this the newest messages appear at the bottom of the printed
list, which is the same behaviour we had before merging recent
SmsInboxAPI changes. Finding the newest message is easier if it is at
the end of printed message, no need to scroll or at least search for
the start of the printed output. Before this commit we had:
[
{
"threadid": 7,
"type": "inbox",
"read": true,
"number": "+123",
"received": "2021-04-24 20:59:16",
"body": "bar"
},
{
"threadid": 5,
"type": "inbox",
"read": true,
"sender": "foo",
"number": "+123",
"received": "2021-04-23 13:12:28",
"body": "bar"
},
{
"threadid": 5,
"type": "sent",
"read": true,
"sender": "foo",
"number": "+123",
"received": "2021-04-21 13:11:14",
"body": "bar"
}
]
With this we get:
[
{
"threadid": 5,
"type": "sent",
"read": true,
"sender": "foo",
"number": "+123",
"received": "2021-04-21 13:11:14",
"body": "bar"
},
{
"threadid": 5,
"type": "inbox",
"read": true,
"sender": "foo",
"number": "+123",
"received": "2021-04-23 13:12:28",
"body": "bar"
},
{
"threadid": 7,
"type": "inbox",
"read": true,
"number": "+123",
"received": "2021-04-24 20:59:16",
"body": "bar"
}
]1 parent 5029bc8 commit b3b0298
1 file changed
+6
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
| 80 | + | |
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
127 | | - | |
128 | | - | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
136 | | - | |
| 136 | + | |
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
| |||
0 commit comments