Contacts menu bug fix
This commit is contained in:
@@ -28,11 +28,12 @@ function on_drawer_open()
|
|||||||
|
|
||||||
names = map(contacts, function(it) return it.name end)
|
names = map(contacts, function(it) return it.name end)
|
||||||
keys = map(contacts, function(it) return it.lookup_key end)
|
keys = map(contacts, function(it) return it.lookup_key end)
|
||||||
|
|
||||||
icons = map(contacts, function(it)
|
icons = map(contacts, function(it)
|
||||||
if it.icon ~= nil then
|
if it.icon ~= nil then
|
||||||
return it.icon
|
return it.icon
|
||||||
else
|
else
|
||||||
return it.name:sub(1,1) -- Backward compatibility
|
return "fa:phone" -- Backward compatibility
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user