Provide fallback if pinnedConversationIds not already set
This commit is contained in:
parent
59a181bd30
commit
d7f3b39fec
1 changed files with 1 additions and 1 deletions
|
@ -416,7 +416,7 @@ Whisper.ConversationView = Whisper.View.extend({
|
|||
|
||||
setPin(value: boolean) {
|
||||
if (value) {
|
||||
if (window.storage.get('pinnedConversationIds').length >= 4) {
|
||||
if (window.storage.get('pinnedConversationIds', []).length >= 4) {
|
||||
this.showToast(Whisper.PinnedConversationsFullToast);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue