Many modern protocols are using uuids as id's and forcing that into a uint64 is
going to lead to collisions. So instead just use a string which should work for
everything.
Testing Done:
Ran the demo and unit tests.
Reviewed at https://reviews.imfreedom.org/r/879/
/*
* Talkatu - GTK widgets for chat applications
* Copyright (C) 2017-2020 Gary Kramlich <grim@reaperworld.com>
*
* This library is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this library; if not, see <https://www.gnu.org/licenses/>.
*/
#include<glib.h>
#include<glib/gi18n-lib.h>
#include<glib/gstdio.h>
#include<gspell/gspell.h>
#include"talkatu/talkatuinput.h"
#include"talkatu/talkatuactiongroup.h"
#include"talkatu/talkatuattachmentdialog.h"
#include"talkatu/talkatuenums.h"
#include"talkatu/talkatumarkup.h"
#include"talkatu/talkatumessage.h"
#include"talkatu/talkatusimpleattachment.h"
/**
* SECTION:talkatuinput
* @Title: Input Widget
* @Short_description: The main Talkatu input widget.
*
* #TalkatuInput handles all of the details for sending messages.
*/
/**
* TALKATU_TYPE_INPUT:
*
* The standard _get_type macro for #TalkatuInput.
*/
/**
* TalkatuInput:
*
* #TalkatuInput is the main input widget for Talkatu. It supports WYSIWYG
* input for both HTML and Markdown as well as plain text.
*
* It implements #TalkatuMessage which means it can be written directly to
* #TalkatuHistory with talkatu_history_write_message(). That also means that
* it can handle attachments. Currently this is only supported programatically.
*
* It provides keybinds for pasting images as well as emitting a signal when the
* user has pressed a developer defined keybinding to "send" the message.
*/
/**
* TalkatuInputClass:
* @should_send_message: The class handler for the
* #TalkatuInput::should_send_message signal.
* @send_message: The class handler for the #TalkatuInput::send_message signal.