mirror of
https://github.com/kevachat/geminiapp.git
synced 2025-03-13 05:51:39 +00:00
fix remote rooms name detection
This commit is contained in:
parent
46fefa0e90
commit
5b5934df44
@ -135,6 +135,17 @@ class Room
|
||||
return null;
|
||||
}
|
||||
|
||||
// Get subject
|
||||
$subject = null;
|
||||
|
||||
foreach ((array) $this->_kevacoin->kevaListNamespaces() as $record) // find local room name
|
||||
{
|
||||
if ($record['namespaceId'] == $namespace)
|
||||
{
|
||||
$subject = $record['displayName'];
|
||||
}
|
||||
}
|
||||
|
||||
// Get posts
|
||||
$posts = [];
|
||||
|
||||
@ -144,22 +155,16 @@ class Room
|
||||
{
|
||||
$posts[$time] = $post;
|
||||
}
|
||||
|
||||
if ($record['key'] == '_KEVA_NS_') // find remote room name
|
||||
{
|
||||
$subject = $record['value'];
|
||||
}
|
||||
}
|
||||
|
||||
// Sort posts by time
|
||||
krsort($posts);
|
||||
|
||||
// Get subject
|
||||
$subject = null;
|
||||
|
||||
foreach ((array) $this->_kevacoin->kevaListNamespaces() as $record)
|
||||
{
|
||||
if ($record['namespaceId'] == $namespace)
|
||||
{
|
||||
$subject = $record['displayName'];
|
||||
}
|
||||
}
|
||||
|
||||
// Get template
|
||||
return str_replace(
|
||||
[
|
||||
|
Loading…
x
Reference in New Issue
Block a user