mirror of
https://github.com/vishalxl/nostr_console.git
synced 2025-04-01 00:18:21 +02:00
checked for channel size to avoid crash when printing channel overview
This commit is contained in:
parent
7343a58320
commit
deac0aa1c4
@ -1335,6 +1335,10 @@ class Store {
|
||||
channelstoPrint.sort(scrollableCompareTo);
|
||||
int numChannelsActuallyPrinted = 0;
|
||||
|
||||
if( channelstoPrint.length < numRoomsOverview) {
|
||||
numRoomsOverview = channelstoPrint.length;
|
||||
}
|
||||
|
||||
print("\n\n");
|
||||
printUnderlined(" Channel Name Num of Messages Latest Message ");
|
||||
for(int j = 0; j < numRoomsOverview; j++) {
|
||||
|
@ -4,11 +4,7 @@ version: 0.1.0-beta
|
||||
homepage: https://github.com/vishalxl/nostr_console
|
||||
|
||||
# Release 0.1.0-beta - encrypted channels; fixes
|
||||
# improved fetching of events. and display for channels.
|
||||
# damus reactions
|
||||
# random seed
|
||||
# printed info
|
||||
# added delay
|
||||
# crash channel overview
|
||||
|
||||
environment:
|
||||
sdk: '>=2.17.3 <3.0.0'
|
||||
|
Loading…
x
Reference in New Issue
Block a user